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()); }
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()); }
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(); }