summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper.cc
Commit message (Collapse)AuthorAgeFilesLines
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-13/+13
|
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-1/+1
|
* First prototype of webtiles.Florian Diebold2011-06-261-2/+2
| | | | | | Conflicts: crawl-ref/source/startup.cc
* glwrapper.cc: add missing include for AppHdr.hSteven Noonan2010-05-161-0/+2
| | | | | | Fixes a compilation error due to no definition of DEBUG/NDEBUG. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add "current colour" to GLState.Enne Walker2010-05-141-3/+17
| | | | | This simplifies code that was setting and unsetting the global current colour manually.
* Code cleanup for triangles branch.Enne Walker2010-05-141-1/+15
| | | | Applying standards, simplifying code, removing redundant comments.
* Removed QUADS from supported drawing modes.Ixtli2010-05-141-2/+0
| | | | Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Removed GLStateManager::draw and GLPrimitive.Ixtli2010-05-141-16/+0
| | | | | | This will force all drawing to be done through VertBuffer. Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Move static VColour definitions out of tilebuf.cc.Ixtli2010-05-141-0/+7
| | | | Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Added GLShapeBuffer. Changed GLState, Manager.Ixtli2010-05-141-0/+24
| | | | | | | | | Added convenience methods to GLState. Changed GLStateManager to check current state before using glEnable in case those commands are slow, as they are being called nearly ever draw. (Note: GLShapeBuffer is not currently used.) Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Struct changes. Added a winding query.Ixtli2010-05-141-5/+2
| | | | | | | | Added a GLWRect for passing rectangles generically. Moved VColour into glwrapper.h; it will survive the purging. Can now ask GLStateManager what winding it's using. Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Fix GLPrimitive to use a size_t, as returned by sizeof.Enne Walker2010-04-241-1/+1
|
* Move specific create funcs out of generic files.Enne Walker2010-04-241-24/+1
| | | | | | | glwrapper-ogl.cc, windowmanager-sdl.cc, and fontwrapper-ft.cc now contain the static functions for their parent class's factory create. This allows new implementations to be added without requiring modification of the generic file (with #ifdefs).
* General coding standards update.Enne Walker2010-04-241-2/+2
| | | | | | No spaces on parens. Line up function params. Sort includes more rationally. Put curly braces on their own line. Don't C-style typedef enum and structs. Put if-clauses on their own line.
* Changed DEBUG to ASSERTS to comply with changes in master.Ixtli2010-04-241-2/+2
|
* Made glwrapper use proper dynamic dispatch for modularity.Ixtli2010-04-241-0/+83
|
* Fixed -h file names referring to specific implementations.Ixtli2010-04-241-267/+0
| | | | | The makefile should now name the .o's based on what libraries you're using, as well.
* Cleaned up glwrapperIxtli2010-04-241-8/+5
|
* Removed drawTextBox and drawColoredBox and replaced them with calls to ↵Ixtli2010-04-241-32/+6
| | | | draw_primitive. Also added GLStateManager methods for setting the current drawing color, and a GLW_4VF struct for completeness.
* Removed unnecessary conditional for texturing lines.Ixtli2010-04-241-1/+1
|
* More camel case to underscores_as_spacesIxtli2010-04-241-10/+10
|
* More coding standards changes. This time s/if\(/if\ \(/gIxtli2010-04-241-9/+9
|
* Updated files to conform to crawl coding standardsIxtli2010-04-241-30/+31
|
* Fixed include order and ifdefsIxtli2010-04-241-4/+4
|
* removed opengl from UIWrapper, fixed indenting in uiwrapper-sdl and added a ↵Ixtli2010-04-241-0/+10
| | | | resizeWindow method in GLStateManager
* Added GLPrimitive to glwrapper, condenced all vert-drawing methods to ↵Ixtli2010-04-241-76/+75
| | | | | | drawGLPrimitives and then updated tilebuf, font, reg, and sdl to use it propperly. As well, tilebuf's VertBuffer::draw() method needed to be changed to allow passing to pre-render transformations (used in submerged tile rendering.)
* Moved MipMapOptions to glwrapper for modularityIxtli2010-04-241-2/+2
|
* Removed tiletex dependancy on SDL_opengl and updated glwrapper.h/cc to ↵Ixtli2010-04-241-0/+47
| | | | support it
* Removed direct calls to opengl from tilefont and updated glwrapper accordingly.Ixtli2010-04-241-0/+42
|
* Updated tilesdl.cc to use glwrapper instead of direct gl calls.Ixtli2010-04-241-0/+22
|
* Added drawing functions and fixed many syntax errors in glwrapper.cc/hIxtli2010-04-241-18/+56
|
* Added glwrapper, which expands the GLStateManager class from tilebuf into a ↵Ixtli2010-04-241-0/+137
(g)raphics (l)ibrary wrapper. Also updated the makefile to include it when making with GL=y