45 Graphics::GUIElement(front ?
Graphics::GUIElement::kGUIElementFront :
Graphics::GUIElement::kGUIElementBack), _type(type) {
72 glDisable(GL_DEPTH_TEST);
73 glDepthMask(GL_FALSE);
75 glMatrixMode(GL_PROJECTION);
80 glMatrixMode(GL_MODELVIEW);
85 glColor3f(0.0f, 0.0f, 0.0f);
94 glColor3f(1.0f, 1.0f, 1.0f);
97 glTexCoord2f(0.0, 0.0);
99 glTexCoord2f(1.0, 0.0);
101 glTexCoord2f(1.0, 1.0);
103 glTexCoord2f(0.0, 1.0);
109 glMatrixMode(GL_PROJECTION);
112 glMatrixMode(GL_MODELVIEW);
114 glDepthMask(GL_TRUE);
115 glEnable(GL_DEPTH_TEST);
#define ResMan
Shortcut for accessing the sound manager.
Only render transparent parts.
The global graphics manager.
virtual void hide()
Hide the object.
void debugC(Common::DebugChannel channel, uint32 level, const char *s,...)
A class holding an UTF-8 string.
#define TextureMan
Shortcut for accessing the texture manager.
double _distance
The distance of the object from the viewer.
Utility functions for debug output.
The Aurora texture manager.
void render(Graphics::RenderPass pass)
Render the object.
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
GUIBackground(const Common::UString &type=kBackgroundTypeMenu, bool front=false)
void setType(const Common::UString &type)
const char * c_str() const
Return the (utf8 encoded) string data.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Utility templates and functions.
void calculateDistance()
Calculate the object's distance.
Graphics::Aurora::TextureHandle _texture
Basic type definitions to handle files used in BioWare's Aurora engine.
#define WindowMan
Shortcut for accessing the window manager.
static const Resolution kResolutions[]
void notifyResized(int oldWidth, int oldHeight, int newWidth, int newHeight)
const Common::UString & getName() const
bool tryBackground(int x, int y)
"EGraphics", engine graphics.
The global resource manager for Aurora resources.
A list common video resolutions.