Exemple #1
0
	void dx11render::fillRect(const rect& r, const color& c)
	{
		drawRect_(c.toD3DXCOLOR(), c.toD3DXCOLOR(), r.getX(), r.getY(), r.getX() + r.getW(), r.getY() + r.getH());
	}
Exemple #2
0
	void dx11render::fillGradient(const rect& r, const color& top, const color& bottom)
	{
		drawRect_(top.toD3DXCOLOR(), bottom.toD3DXCOLOR(), r.getX(), r.getY(), r.getX() + r.getW(), r.getY() + r.getH());
	}
Exemple #3
0
void drawRect(int x,int y,int w,int h,float tx,float ty,float tw,float th){
	glBegin(GL_QUADS);
	drawRect_(x,y,w,h,tx,ty,tw,th);
	glEnd();
}