285
285
void BasePainter::Paint2DQuadColor (GraphicsEngine &GfxContext, const Geometry &g, Color c0) const
287
GfxContext.QRP_GLSL_Color (g.x, g.y, g.GetWidth(), g.GetHeight(), c0);
287
GfxContext.QRP_Color (g.x, g.y, g.GetWidth(), g.GetHeight(), c0);
290
290
void BasePainter::Paint2DQuadColor (GraphicsEngine &GfxContext, const Geometry &g, Color c0_top_left, Color c1_bottom_left, Color c2_bottom_right, Color c3_top_right) const
292
GfxContext.QRP_GLSL_Color (g.x, g.y, g.GetWidth(), g.GetHeight(), c0_top_left, c1_bottom_left, c2_bottom_right, c3_top_right);
292
GfxContext.QRP_Color (g.x, g.y, g.GetWidth(), g.GetHeight(), c0_top_left, c1_bottom_left, c2_bottom_right, c3_top_right);
295
295
void BasePainter::Paint2DQuadColor (GraphicsEngine &GfxContext, int x, int y, int width, int height, Color c0) const
297
GfxContext.QRP_GLSL_Color (x, y, width, height, c0);
297
GfxContext.QRP_Color (x, y, width, height, c0);
301
301
void BasePainter::Paint2DQuadColor (GraphicsEngine &GfxContext, int x, int y, int width, int height, Color c0_top_left, Color c1_bottom_left, Color c2_bottom_right, Color c3_top_right) const
303
GfxContext.QRP_GLSL_Color (x, y, width, height, c0_top_left, c1_bottom_left, c2_bottom_right, c3_top_right);
303
GfxContext.QRP_Color (x, y, width, height, c0_top_left, c1_bottom_left, c2_bottom_right, c3_top_right);
306
306
void BasePainter::Paint2DQuadVGradient (GraphicsEngine &GfxContext, const Geometry &g, Color TopColor, Color BottomColor) const
319
319
/////////////////////////////
320
320
void BasePainter::Paint2DQuadWireframe (GraphicsEngine &GfxContext, const Geometry &g, Color c0) const
322
GfxContext.QRP_GLSL_QuadWireframe (g.x, g.y, g.GetWidth(), g.GetHeight(), c0, c0, c0, c0);
322
GfxContext.QRP_QuadWireframe (g.x, g.y, g.GetWidth(), g.GetHeight(), c0, c0, c0, c0);
325
325
// void BasePainter::Paint2DQuadWireframe(GraphicsEngine& GfxContext, const Geometry &g, Color c0_left, Color c1_right) const
327
// GfxContext.QRP_GLSL_QuadWireframe(g.x, g.y, g.GetWidth(), g.GetHeight(), c0_left, c0_left, c1_right, c1_right);
327
// GfxContext.QRP_QuadWireframe(g.x, g.y, g.GetWidth(), g.GetHeight(), c0_left, c0_left, c1_right, c1_right);
330
330
void BasePainter::Paint2DQuadWireframe (GraphicsEngine &GfxContext, const Geometry &g, Color c_top_left, Color c_bottom_left, Color c_bottom_right, Color c_top_right) const
332
GfxContext.QRP_GLSL_QuadWireframe (g.x, g.y, g.GetWidth(), g.GetHeight(), c_top_left, c_bottom_left, c_bottom_right, c_top_right);
332
GfxContext.QRP_QuadWireframe (g.x, g.y, g.GetWidth(), g.GetHeight(), c_top_left, c_bottom_left, c_bottom_right, c_top_right);
335
335
void BasePainter::Paint2DQuadWireframe (GraphicsEngine &GfxContext, int x, int y, int width, int height, Color c0) const
337
GfxContext.QRP_GLSL_QuadWireframe (x, y, width, height, c0, c0, c0, c0);
337
GfxContext.QRP_QuadWireframe (x, y, width, height, c0, c0, c0, c0);
340
340
// void BasePainter::Paint2DQuadWireframe(GraphicsEngine& GfxContext, int x, int y, int width, int height, Color c0_left, Color c1_right) const
342
// GfxContext.QRP_GLSL_QuadWireframe(x, y, width, height, c0_left, c0_left, c1_right, c1_right);
342
// GfxContext.QRP_QuadWireframe(x, y, width, height, c0_left, c0_left, c1_right, c1_right);
345
345
void BasePainter::Paint2DQuadWireframe (GraphicsEngine &GfxContext, int x, int y, int width, int height, Color c_top_left, Color c_bottom_left, Color c_bottom_right, Color c_top_right) const
347
GfxContext.QRP_GLSL_QuadWireframe (x, y, width, height, c_top_left, c_bottom_left, c_bottom_right, c_top_right);
347
GfxContext.QRP_QuadWireframe (x, y, width, height, c_top_left, c_bottom_left, c_bottom_right, c_top_right);
350
350
//////////////////////
372
372
void BasePainter::Draw2DLine (GraphicsEngine &GfxContext, int x0, int y0,
373
373
int x1, int y1, Color c0) const
375
GfxContext.QRP_GLSL_Line (x0, y0, x1, y1, c0);
375
GfxContext.QRP_Line (x0, y0, x1, y1, c0);
377
377
void BasePainter::Draw2DLine (GraphicsEngine &GfxContext, int x0, int y0,
378
378
int x1, int y1, Color c0, Color c1) const
380
GfxContext.QRP_GLSL_Line (x0, y0, x1, y1, c0, c1);
380
GfxContext.QRP_Line (x0, y0, x1, y1, c0, c1);
383
383
////////////////////
457
457
texxform.u1 = border_left;
458
458
texxform.v1 = border_top;
459
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x, r_y, border_left, border_top, texture->GetDeviceTexture(), texxform, c0);
459
GfxContext.QRP_ColorModTexAlpha (r_x, r_y, border_left, border_top, texture->GetDeviceTexture(), texxform, c0);
463
GfxContext.QRP_GLSL_Color (r_x, r_y, border_left, border_top, c0);
463
GfxContext.QRP_Color (r_x, r_y, border_left, border_top, c0);
466
466
// Draw TOP-RIGHT CORNER
471
471
texxform.u1 = tex_w;
472
472
texxform.v1 = border_top;
473
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x + r_w - border_right, r_y, border_right, border_top, texture->GetDeviceTexture(), texxform, c0);
473
GfxContext.QRP_ColorModTexAlpha (r_x + r_w - border_right, r_y, border_right, border_top, texture->GetDeviceTexture(), texxform, c0);
477
GfxContext.QRP_GLSL_Color (r_x + r_w - border_right, r_y, border_right, border_top, c0);
477
GfxContext.QRP_Color (r_x + r_w - border_right, r_y, border_right, border_top, c0);
480
480
// Draw BOTTOM-LEFT CORNER
484
484
texxform.v0 = tex_h - border_bottom;
485
485
texxform.u1 = border_left;
486
486
texxform.v1 = tex_h;
487
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x, r_y + r_h - border_bottom, border_left, border_bottom, texture->GetDeviceTexture(), texxform, c0);
487
GfxContext.QRP_ColorModTexAlpha (r_x, r_y + r_h - border_bottom, border_left, border_bottom, texture->GetDeviceTexture(), texxform, c0);
491
GfxContext.QRP_GLSL_Color (r_x, r_y + r_h - border_bottom, border_left, border_bottom, c0);
491
GfxContext.QRP_Color (r_x, r_y + r_h - border_bottom, border_left, border_bottom, c0);
494
494
// Draw BOTTOM-RIGHT CORNER
498
498
texxform.v0 = tex_h - border_bottom;
499
499
texxform.u1 = tex_w;
500
500
texxform.v1 = tex_h;
501
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x + r_w - border_right, r_y + r_h - border_bottom, border_right, border_bottom, texture->GetDeviceTexture(), texxform, c0);
501
GfxContext.QRP_ColorModTexAlpha (r_x + r_w - border_right, r_y + r_h - border_bottom, border_right, border_bottom, texture->GetDeviceTexture(), texxform, c0);
505
GfxContext.QRP_GLSL_Color (r_x + r_w - border_right, r_y + r_h - border_bottom, border_right, border_bottom, c0);
505
GfxContext.QRP_Color (r_x + r_w - border_right, r_y + r_h - border_bottom, border_right, border_bottom, c0);
508
508
texxform.u0 = border_left;
510
510
texxform.u1 = tex_w - border_right;
511
511
texxform.v1 = border_top;
512
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x + border_left, r_y, r_w - border_left - border_right, border_top, texture->GetDeviceTexture(), texxform, c0);
512
GfxContext.QRP_ColorModTexAlpha (r_x + border_left, r_y, r_w - border_left - border_right, border_top, texture->GetDeviceTexture(), texxform, c0);
513
513
// Draw BOTTOM BORDER
514
514
texxform.u0 = border_left;
515
515
texxform.v0 = tex_h - border_bottom;
516
516
texxform.u1 = tex_w - border_right;
517
517
texxform.v1 = tex_h;
518
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x + border_left, r_y + r_h - border_bottom, r_w - border_left - border_right, border_bottom, texture->GetDeviceTexture(), texxform, c0);
518
GfxContext.QRP_ColorModTexAlpha (r_x + border_left, r_y + r_h - border_bottom, r_w - border_left - border_right, border_bottom, texture->GetDeviceTexture(), texxform, c0);
519
519
// Draw LEFT BORDER
521
521
texxform.v0 = border_top;
522
522
texxform.u1 = border_left;
523
523
texxform.v1 = tex_h - border_bottom;
524
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x, r_y + border_top, border_left, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, c0);
524
GfxContext.QRP_ColorModTexAlpha (r_x, r_y + border_top, border_left, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, c0);
525
525
// Draw RIGHT BORDER
526
526
texxform.u0 = tex_w - border_right;
527
527
texxform.v0 = border_top;
528
528
texxform.u1 = tex_w;
529
529
texxform.v1 = tex_h - border_bottom;
530
GfxContext.QRP_GLSL_ColorModTexAlpha (r_x + r_w - border_right, r_y + border_top, border_right, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, c0);
530
GfxContext.QRP_ColorModTexAlpha (r_x + r_w - border_right, r_y + border_top, border_right, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, c0);
533
533
if (draw_borders_only == false)
596
596
texxform.u1 = border_left;
597
597
texxform.v1 = border_top;
598
GfxContext.QRP_GLSL_1Tex (r_x, r_y, border_left, border_top, texture->GetDeviceTexture(), texxform, Color::White);
598
GfxContext.QRP_1Tex (r_x, r_y, border_left, border_top, texture->GetDeviceTexture(), texxform, Color::White);
599
599
// Draw TOP-RIGHT CORNER
600
600
texxform.u0 = tex_w - border_right;
602
602
texxform.u1 = tex_w;
603
603
texxform.v1 = border_top;
604
GfxContext.QRP_GLSL_1Tex (r_x + r_w - border_right, r_y, border_right, border_top, texture->GetDeviceTexture(), texxform, Color::White);
604
GfxContext.QRP_1Tex (r_x + r_w - border_right, r_y, border_right, border_top, texture->GetDeviceTexture(), texxform, Color::White);
605
605
// Draw BOTTOM-LEFT CORNER
607
607
texxform.v0 = tex_h - border_bottom;
608
608
texxform.u1 = border_left;
609
609
texxform.v1 = tex_h;
610
GfxContext.QRP_GLSL_1Tex (r_x, r_y + r_h - border_bottom, border_left, border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
610
GfxContext.QRP_1Tex (r_x, r_y + r_h - border_bottom, border_left, border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
611
611
// Draw BOTTOM-RIGHT CORNER
612
612
texxform.u0 = tex_w - border_right;
613
613
texxform.v0 = tex_h - border_bottom;
614
614
texxform.u1 = tex_w;
615
615
texxform.v1 = tex_h;
616
GfxContext.QRP_GLSL_1Tex (r_x + r_w - border_right, r_y + r_h - border_bottom, border_right, border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
616
GfxContext.QRP_1Tex (r_x + r_w - border_right, r_y + r_h - border_bottom, border_right, border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
617
617
// Draw TOP BORDER
618
618
texxform.u0 = border_left;
620
620
texxform.u1 = tex_w - border_right;
621
621
texxform.v1 = border_top;
622
GfxContext.QRP_GLSL_1Tex (r_x + border_left, r_y, r_w - border_left - border_right, border_top, texture->GetDeviceTexture(), texxform, Color::White);
622
GfxContext.QRP_1Tex (r_x + border_left, r_y, r_w - border_left - border_right, border_top, texture->GetDeviceTexture(), texxform, Color::White);
623
623
// Draw BOTTOM BORDER
624
624
texxform.u0 = border_left;
625
625
texxform.v0 = tex_h - border_bottom;
626
626
texxform.u1 = tex_w - border_right;
627
627
texxform.v1 = tex_h;
628
GfxContext.QRP_GLSL_1Tex (r_x + border_left, r_y + r_h - border_bottom, r_w - border_left - border_right, border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
628
GfxContext.QRP_1Tex (r_x + border_left, r_y + r_h - border_bottom, r_w - border_left - border_right, border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
629
629
// Draw LEFT BORDER
631
631
texxform.v0 = border_top;
632
632
texxform.u1 = border_left;
633
633
texxform.v1 = tex_h - border_bottom;
634
GfxContext.QRP_GLSL_1Tex (r_x, r_y + border_top, border_left, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
634
GfxContext.QRP_1Tex (r_x, r_y + border_top, border_left, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
635
635
// Draw RIGHT BORDER
636
636
texxform.u0 = tex_w - border_right;
637
637
texxform.v0 = border_top;
638
638
texxform.u1 = tex_w;
639
639
texxform.v1 = tex_h - border_bottom;
640
GfxContext.QRP_GLSL_1Tex (r_x + r_w - border_right, r_y + border_top, border_right, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
640
GfxContext.QRP_1Tex (r_x + r_w - border_right, r_y + border_top, border_right, r_h - border_top - border_bottom, texture->GetDeviceTexture(), texxform, Color::White);
643
643
if (draw_borders_only == false)