Exemplo n.º 1
0
void RenderLightRadiiBox::render(const RenderInfo& info) const {
	//draw the bounding box of light based on light_radius key
	aabb_draw_wire(m_points);

  #if 1    //disable if you dont want lines going from the center of the light bbox to the corners
	light_draw_box_lines(m_origin, m_points);
  #endif
}
Exemplo n.º 2
0
void NullModel::render(const RenderInfo& info) const {
	if (info.checkFlag(RENDER_TEXTURE_2D))
    {
		aabb_draw_solid(_aabbLocal, info.getFlags());
	}
	else
    {
		aabb_draw_wire(_aabbLocal);
	}
}
Exemplo n.º 3
0
		void render (RenderStateFlags state) const
		{
			//draw the bounding box of light based on light_radius key
			if ((state & RENDER_FILL) != 0) {
				aabb_draw_flatshade(m_points);
			} else {
				aabb_draw_wire(m_points);
			}

			//disable if you dont want lines going from the center of the light bbox to the corners
			light_draw_box_lines(m_origin, m_points);
		}