Browse Source

Misc

pull/1/head
falkTX 11 years ago
parent
commit
65f3c98766
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      examples/demo.cpp

+ 15
- 1
examples/demo.cpp View File

@@ -40,6 +40,16 @@ public:
protected:
void onDisplay() override
{
#if 0
glEnable(GL_MULTISAMPLE);
glEnable(GL_LINE_SMOOTH);
glEnable(GL_SRC_ALPHA);
glEnable(GL_ONE_MINUS_SRC_ALPHA);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
#endif

glLineWidth(1.0f);
glColor3f(0.302f, 0.337f, 0.361f);
bgFull.draw();

@@ -51,9 +61,13 @@ protected:

glColor3f(0.302f*2, 0.337f*2, 0.361f*2);
tri.draw();

glLineWidth(3.0f);
glColor3f(0.302f/2.0f, 0.337f/2.0f, 0.361f/2.0f);
tri.drawOutline();
}

void onReshape(int width, int height)
void onReshape(int width, int height) override
{
// full bg
bgFull = DGL::Rectangle<int>(0, 0, width, height);


Loading…
Cancel
Save