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);
86 glTexCoord2f(0.0, 0.0);
88 glTexCoord2f(1.0, 0.0);
90 glTexCoord2f(1.0, 1.0);
92 glTexCoord2f(0.0, 1.0);
98 glMatrixMode(GL_PROJECTION);
101 glMatrixMode(GL_MODELVIEW);
103 glDepthMask(GL_TRUE);
104 glEnable(GL_DEPTH_TEST);
#define ResMan
Shortcut for accessing the sound manager.
void setType(const Common::UString &type)
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.
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
void notifyResized(int oldWidth, int oldHeight, int newWidth, int newHeight)
GUIBackground(const Common::UString &type=kBackgroundTypeMenu, bool front=false)
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().
void render(Graphics::RenderPass pass)
Render the object.
Utility templates and functions.
void calculateDistance()
Calculate the object's distance.
Basic type definitions to handle files used in BioWare's Aurora engine.
#define WindowMan
Shortcut for accessing the window manager.
static const Resolution kResolutions[]
bool tryBackground(int x, int y)
const Common::UString & getName() const
"EGraphics", engine graphics.
The global resource manager for Aurora resources.
Graphics::Aurora::TextureHandle _texture
A list common video resolutions.