コード例 #1
0
ファイル: Renderables.cpp プロジェクト: DerSaidin/DarkRadiant
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
}
コード例 #2
0
ファイル: NullModel.cpp プロジェクト: BielBdeLuna/DarkRadiant
void NullModel::render(const RenderInfo& info) const {
	if (info.checkFlag(RENDER_TEXTURE_2D))
    {
		aabb_draw_solid(_aabbLocal, info.getFlags());
	}
	else
    {
		aabb_draw_wire(_aabbLocal);
	}
}
コード例 #3
0
ファイル: light.cpp プロジェクト: MyWifeRules/ufoai-1
		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);
		}