#include <glcontext.hh>
Inheritance diagram for anoid::context::GLContext:


Public Methods | |
| GLContext () | |
| virtual void | initWindow (int width, int height) |
| virtual void | initFullscreen (int width, int height) |
| virtual void | setView () |
| virtual void | loadIdentity () |
| virtual void | pushMatrix () |
| virtual void | popMatrix () |
| virtual void | rotate (simple::Matrix &rotation) |
| virtual void | scale (simple::Vector &scale) |
| virtual void | translate (simple::Vector &translation) |
| virtual int | beginFigure () |
| virtual void | endFigure () |
| virtual void | removeFigure (int id) |
| virtual void | drawTriangle (simple::Vector &A, simple::Vector &B, simple::Vector &C, simple::Vector &normal, int a=0) |
| virtual void | drawQuad (simple::Vector &A, simple::Vector &B, simple::Vector &C, simple::Vector &D, simple::Vector &normal, int a=0) |
| virtual void | drawFigure (int id) |
| virtual simple::Matrix | getMatrix () |
| virtual void | setMatrix (simple::Matrix &m) |
| virtual void | swapBuffers () |
| virtual | ~GLContext () |
Protected Methods | |
| void | quit (int code) |
Protected Attributes | |
| simple::Matrix | _current |
| int | frames |
| Uint32 | then |
Private Methods | |
| void | init (int width, int height, bool window) |
| void | endDrawing () |
Private Attributes | |
| bool | drawingTriangles |
| bool | drawingQuads |
|
|
Definition at line 21 of file glcontext.hh. References drawingQuads, drawingTriangles, and frames. |
|
|
Definition at line 189 of file glcontext.cc. References quit(). |
|
|
Implements anoid::context::Context. Definition at line 123 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 169 of file glcontext.cc. |
|
||||||||||||||||||||||||||||
|
Implements anoid::context::Context. Definition at line 155 of file glcontext.cc. References drawingQuads, endDrawing(), and Vector(). |
|
||||||||||||||||||||||||
|
Implements anoid::context::Context. Definition at line 142 of file glcontext.cc. References drawingTriangles, endDrawing(), and Vector(). |
|
|
Definition at line 137 of file glcontext.cc. References drawingQuads, and drawingTriangles. Referenced by drawQuad(), drawTriangle(), and endFigure(). |
|
|
Implements anoid::context::Context. Definition at line 129 of file glcontext.cc. References endDrawing(). |
|
|
Implements anoid::context::Context. Definition at line 173 of file glcontext.cc. |
|
||||||||||||||||
|
Definition at line 18 of file glcontext.cc. References NULL, quit(), and then. Referenced by initFullscreen(), and initWindow(). |
|
||||||||||||
|
Implements anoid::context::Context. Definition at line 93 of file glcontext.cc. References init(). |
|
||||||||||||
|
Implements anoid::context::Context. Definition at line 89 of file glcontext.cc. References init(). |
|
|
Implements anoid::context::Context. Definition at line 100 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 108 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 104 of file glcontext.cc. |
|
|
Definition at line 12 of file glcontext.cc. Referenced by init(), and ~GLContext(). |
|
|
Implements anoid::context::Context. Definition at line 134 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 112 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 115 of file glcontext.cc. References scale(), and Vector(). Referenced by scale(). |
|
|
Implements anoid::context::Context. Definition at line 176 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 97 of file glcontext.cc. |
|
|
Implements anoid::context::Context. Definition at line 179 of file glcontext.cc. References frames. |
|
|
Implements anoid::context::Context. Definition at line 119 of file glcontext.cc. References Vector(). |
|
|
Reimplemented from anoid::context::Context. Definition at line 16 of file glcontext.hh. |
|
|
Definition at line 12 of file glcontext.hh. Referenced by drawQuad(), endDrawing(), and GLContext(). |
|
|
Definition at line 12 of file glcontext.hh. Referenced by drawTriangle(), endDrawing(), and GLContext(). |
|
|
Definition at line 18 of file glcontext.hh. Referenced by GLContext(), quit(), and swapBuffers(). |
|
|
Definition at line 19 of file glcontext.hh. |