Пример #1
0
void NodeConnectorControl::draw(GlInterface &gl)
{
	if(visible && isolateViewport(gl))
	{
		drawBackground(gl);
		restoreViewport(gl);
	}
}
Пример #2
0
void NodeControl::draw(GlInterface &gl)
{
	if(visible && isolateViewport(gl))// && ngd_parent->nodeIsVisible(node))
	{
		drawBody(gl);
		restoreViewport(gl);
	}
}
Пример #3
0
void MenuBar::draw(GlInterface &gl)
{
	if(isolateViewport(gl, false))	//Dont clamp children
	{
		drawBackground(gl);
		drawChildren(gl);

		restoreViewport(gl);
	}
}
Пример #4
0
void GraphDisplay::draw(GlInterface &gl)
{
	if(isolateViewport(gl))
	{
		drawBackground(gl);
		drawGraph(gl);

		restoreViewport(gl);
	}
}
Пример #5
0
void MidiDisplay::draw(GlInterface &gl)
{
	if(visible && isolateViewport(gl))
	{
		drawBackground(gl);
		if(midiData)
			drawData(gl);

		//(No children)

		restoreViewport(gl);
	}
}
Пример #6
0
void AudioDisplay::draw(GlInterface &gl)
{
	if(visible && isolateViewport(gl))
	{
		drawBackground(gl);
		
		if(audioData && audioData->size() > 0)
			((*audioData)[0]->getType() == ChunkType::AUDIO ? drawData(gl) : drawDataVel(gl));

		//(No children)

		restoreViewport(gl);
	}
}
Пример #7
0
void NodeGraphDisplay::draw(GlInterface &gl)
{
	if(visible && isolateViewport(gl))
	{
		//Draw background
		drawBackground(gl);
		//Draw graph behind nodes
		drawGraph(gl);

		//Draw nodes
		drawChildren(gl);

		transformGl(gl);

		//Draw selection rect
		if(selectionRect.space != TSpace::INVALID)
		{
			std::vector<TVertex> points;
			points.reserve(5);

			Color col(0.0f, 1.0f, 1.0f, 1.0f);

			APoint	p1 = selectionRect.pos,
					p2 = p1 + selectionRect.size;

			points.push_back(TVertex(p1, col));
			points.push_back(TVertex(APoint(p1.x, p2.y), col));
			points.push_back(TVertex(p2, col));
			points.push_back(TVertex(APoint(p2.x, p1.y), col));
			points.push_back(TVertex(p1, col));

			//Draw rect
			gl.drawShape(GL_LINE_STRIP, points);
		}

		untransformGl(gl);
		restoreViewport(gl);
	}
}
Пример #8
0
void Camera::restore()
{
    restoreFrameBufferObject();
    restoreViewport();
}
Пример #9
0
void RGraphicsView::zoomPrevious() {
    restoreViewport();
}