xoreos
0.0.5
|
Namespaces | |
Aurora | |
Mesh | |
Render | |
Shader | |
Classes | |
class | CameraManager |
class | CBGT |
Loader for CBGT, BioWare's Compressed BackGround Tiles, an image format found in Sonic, used as area background images. More... | |
struct | ColorPosition |
class | CubeMapCombiner |
class | Cursor |
An abstract cursor. More... | |
class | DDS |
DDS texture. More... | |
struct | DXT1Texel |
struct | DXT23Texel |
struct | DXT45Texel |
class | Font |
An abstract font. More... | |
class | FPSCounter |
A class counting frames per second. More... | |
class | GLContainer |
A container of OpenGL elements. More... | |
class | GraphicsManager |
The graphics manager. More... | |
class | GUIElement |
An element of the GUI. More... | |
class | ImageDecoder |
A generic interface for image decoders. More... | |
class | IndexBuffer |
Buffer containing indices data. More... | |
class | NBFS |
class | NCGR |
Image decoder for Nintendo's tile-based graphics format. More... | |
class | NCLR |
Simple utility class to load NCLR palette files. More... | |
class | Object |
A renderable game object. More... | |
class | Queueable |
class | QueueManager |
The graphics queue manager. More... | |
class | Renderable |
An object that can be displayed by the graphics manager. More... | |
struct | Resolution |
class | SBM |
SBM font bitmap data. More... | |
class | Surface |
class | Texture |
A texture. More... | |
class | TGA |
TarGa image. More... | |
class | TPC |
BioWare's own texture format, TPC. More... | |
class | TTFRenderer |
class | TXB |
Another one of BioWare's own texture formats, TXB. More... | |
class | TXI |
Texture information. More... | |
struct | VertexAttrib |
Generic vertex attribute data. More... | |
class | VertexBuffer |
Buffer containing vertex data. More... | |
class | WindowManager |
The graphics manager. More... | |
class | WinIconImage |
Windows cursor. More... | |
class | XEOSITEX |
class | YUVToRGBLookup |
class | YUVToRGBManager |
Typedefs | |
typedef GLuint | TextureID |
typedef GLuint | ListID |
typedef std::vector< ColorPosition > | ColorPositions |
typedef std::vector< VertexAttrib > | VertexDecl |
Vertex data layout. More... | |
typedef SDL_DisplayMode | DisplayMode |
Functions | |
static void | outputGLDebug (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam) |
static SDL_Surface * | createStaticIconSurface () |
static void | setStaticIcon (SDL_Window &window) |
void | setWindowIcon (SDL_Window &window) |
static void | writePixel (Common::WriteStream &file, const byte *&data, PixelFormat format) |
static Common::WriteStream * | openTGA (const Common::UString &fileName, int width, int height) |
static void | writeMipMap (Common::WriteStream &stream, const ImageDecoder::MipMap &mipMap, PixelFormat format) |
void | dumpTGA (const Common::UString &fileName, const ImageDecoder *image) |
Dump image into a TGA file. More... | |
static uint32 | convert565To8888 (uint16 color) |
static uint32 | interpolate32 (double weight, uint32 color_0, uint32 color_1) |
void | decompressDXT1 (byte *dest, Common::SeekableReadStream &src, uint32 width, uint32 height, uint32 pitch) |
void | decompressDXT3 (byte *dest, Common::SeekableReadStream &src, uint32 width, uint32 height, uint32 pitch) |
static uint64 | readUint48LE (Common::SeekableReadStream &src) |
void | decompressDXT5 (byte *dest, Common::SeekableReadStream &src, uint32 width, uint32 height, uint32 pitch) |
bool | constructFilename (Common::UString &filename) |
static bool | writeBMP (const Common::UString &filename, const byte *data, int width, int height) |
bool | takeScreenshot () |
Saves a screenshot to a file. More... | |
static uint32 | getTXBDataSize (byte encoding, PixelFormatRaw format, int32 width, int32 height) |
TXICommand | parseTXICommand (const Common::UString &str, Common::UString &args) |
Parse a TXI command from a string. More... | |
static uint32 | getDataSize (PixelFormatRaw format, int32 width, int32 height) |
Return the number of bytes necessary to hold an image of these dimensions and in this format. More... | |
static bool | hasValidDimensions (PixelFormatRaw format, int32 width, int32 height) |
Are these image dimensions valid for this format? More... | |
static void | flipHorizontally (byte *data, int width, int height, int bpp) |
Flip an image horizontally. More... | |
static void | flipVertically (byte *data, int width, int height, int bpp) |
Flip an image vertically. More... | |
static void | rotate90 (byte *data, int width, int height, int bpp, int steps) |
Rotate a square image in 90° steps, clock-wise. More... | |
static uint32 | deSwizzleOffset (uint32 x, uint32 y, uint32 width, uint32 height) |
De-"swizzle" a texture pixel offset. More... | |
static bool | queueComp (Queueable *a, Queueable *b) |
Variables | |
PFNGLCOMPRESSEDTEXIMAGE2DPROC | glCompressedTexImage2D |
static const byte | kStaticIcon [32 *32 *4] |
Static version of the xoreos icon. More... | |
static const Resolution | kResolutions [] |
typedef std::vector<ColorPosition> Graphics::ColorPositions |
typedef SDL_DisplayMode Graphics::DisplayMode |
Definition at line 36 of file windowman.h.
typedef GLuint Graphics::ListID |
typedef GLuint Graphics::TextureID |
typedef std::vector<VertexAttrib> Graphics::VertexDecl |
Vertex data layout.
Definition at line 63 of file vertexbuffer.h.
enum Graphics::QueueType |
enum Graphics::RenderPass |
enum Graphics::TXICommand |
All supported commands in a TXI.
Definition at line 37 of file txitypes.h.
Vertex attribute data index enum, hardcoded for now.
Enumerator | |
---|---|
VPOSITION | Vertex position. |
VNORMAL | Vertex normal. |
VCOLOR | Vertex color. |
VTCOORD | Vertex texture coordinates, VTCOORDi = VTCOORD + i. |
Definition at line 35 of file vertexbuffer.h.
bool Graphics::constructFilename | ( | Common::UString & | filename | ) |
Definition at line 38 of file screenshot.cpp.
References Common::DateTime::formatDateTimeISO(), Common::FilePath::getUserDataFile(), Common::FilePath::isRegularFile(), and Common::DateTime::kUTC.
Referenced by takeScreenshot().
Definition at line 32 of file s3tc.cpp.
Referenced by decompressDXT1(), decompressDXT3(), and decompressDXT5().
|
static |
Definition at line 301 of file icon.cpp.
References kStaticIcon.
Referenced by setStaticIcon().
void Graphics::decompressDXT1 | ( | byte * | dest, |
Common::SeekableReadStream & | src, | ||
uint32 | width, | ||
uint32 | height, | ||
uint32 | pitch | ||
) |
Definition at line 64 of file s3tc.cpp.
References Graphics::DXT1Texel::color_0, Graphics::DXT1Texel::color_1, convert565To8888(), interpolate32(), Graphics::DXT1Texel::pixels, and READ_DXT1_TEXEL.
Referenced by Graphics::ImageDecoder::decompress().
void Graphics::decompressDXT3 | ( | byte * | dest, |
Common::SeekableReadStream & | src, | ||
uint32 | width, | ||
uint32 | height, | ||
uint32 | pitch | ||
) |
Definition at line 114 of file s3tc.cpp.
References Graphics::DXT23Texel::alpha, Graphics::DXT1Texel::color_0, Graphics::DXT1Texel::color_1, convert565To8888(), interpolate32(), Graphics::DXT1Texel::pixels, and READ_DXT3_TEXEL.
Referenced by Graphics::ImageDecoder::decompress().
void Graphics::decompressDXT5 | ( | byte * | dest, |
Common::SeekableReadStream & | src, | ||
uint32 | width, | ||
uint32 | height, | ||
uint32 | pitch | ||
) |
Definition at line 165 of file s3tc.cpp.
References Graphics::DXT45Texel::alpha_0, Graphics::DXT45Texel::alpha_1, Graphics::DXT45Texel::alphabl, Graphics::DXT1Texel::color_0, Graphics::DXT1Texel::color_1, convert565To8888(), interpolate32(), Graphics::DXT1Texel::pixels, and READ_DXT5_TEXEL.
Referenced by Graphics::ImageDecoder::decompress().
|
inlinestatic |
De-"swizzle" a texture pixel offset.
Definition at line 179 of file util.h.
References Common::intLog2().
Referenced by Graphics::TXB::deSwizzle(), Graphics::TPC::deSwizzle(), and Graphics::SBM::readData().
void Graphics::dumpTGA | ( | const Common::UString & | fileName, |
const ImageDecoder * | image | ||
) |
Dump image into a TGA file.
Definition at line 95 of file dumptga.cpp.
References Common::WriteStream::flush(), Graphics::ImageDecoder::getFormat(), Graphics::ImageDecoder::getLayerCount(), Graphics::ImageDecoder::getMipMap(), Graphics::ImageDecoder::getMipMapCount(), Graphics::ImageDecoder::MipMap::height, openTGA(), Graphics::ImageDecoder::MipMap::width, and writeMipMap().
Referenced by Graphics::ImageDecoder::dumpTGA().
|
inlinestatic |
Flip an image horizontally.
Definition at line 95 of file util.h.
References Common::ScopedPtrBase< T, Deallocator >::get().
|
inlinestatic |
Flip an image vertically.
Definition at line 122 of file util.h.
Referenced by Graphics::TGA::readData().
|
inlinestatic |
Return the number of bytes necessary to hold an image of these dimensions and in this format.
Definition at line 43 of file util.h.
References kPixelFormatDXT1, kPixelFormatDXT3, kPixelFormatDXT5, kPixelFormatRGB5, kPixelFormatRGB5A1, kPixelFormatRGB8, and kPixelFormatRGBA8.
Referenced by getTXBDataSize(), Graphics::TPC::readHeader(), and Graphics::DDS::setSize().
|
static |
Definition at line 66 of file txb.cpp.
References getDataSize(), kEncodingBGRA, kEncodingDXT1, kEncodingDXT5, and kEncodingGray.
Referenced by Graphics::TXB::readHeader().
|
inlinestatic |
Are these image dimensions valid for this format?
Definition at line 73 of file util.h.
References kPixelFormatDXT1, kPixelFormatDXT3, kPixelFormatDXT5, kPixelFormatRGB5, kPixelFormatRGB5A1, kPixelFormatRGB8, and kPixelFormatRGBA8.
Referenced by Graphics::ImageDecoder::decompress(), Graphics::DDS::readBioWareHeader(), Graphics::TPC::readHeader(), Graphics::TXB::readHeader(), and Graphics::DDS::readStandardHeader().
|
inlinestatic |
Definition at line 36 of file s3tc.cpp.
Referenced by decompressDXT1(), decompressDXT3(), and decompressDXT5().
|
static |
Definition at line 66 of file dumptga.cpp.
References Common::WriteStream::writeByte(), Common::WriteStream::writeUint16LE(), and Common::WriteStream::writeUint32LE().
Referenced by dumpTGA().
|
static |
Definition at line 267 of file graphics.cpp.
References ARRAYSIZE, DebugMan, Common::kDebugGL3rd, Common::kDebugGLAPI, Common::kDebugGLApp, Common::kDebugGLOther, Common::kDebugGLShader, Common::kDebugGLTypeDeprecated, Common::kDebugGLTypeError, Common::kDebugGLTypeOther, Common::kDebugGLTypePerformance, Common::kDebugGLTypePortability, Common::kDebugGLTypeUndefined, and Common::kDebugGLWindow.
Referenced by Graphics::GraphicsManager::checkGLExtensions().
TXICommand Graphics::parseTXICommand | ( | const Common::UString & | str, |
Common::UString & | args | ||
) |
Parse a TXI command from a string.
Definition at line 99 of file txitypes.cpp.
References Common::UString::c_str(), Common::StringListMap::find(), kTXICommandMap, and TXICommandMAX.
Referenced by Graphics::TXI::load().
Definition at line 32 of file queueman.cpp.
Referenced by Graphics::QueueManager::sortQueue().
|
static |
Definition at line 154 of file s3tc.cpp.
References Common::ReadStream::readUint16LE(), and Common::ReadStream::readUint32LE().
|
inlinestatic |
Rotate a square image in 90° steps, clock-wise.
Definition at line 145 of file util.h.
Referenced by Graphics::TPC::fixupCubeMap().
|
static |
Definition at line 322 of file icon.cpp.
References createStaticIconSurface().
Referenced by setWindowIcon().
void Graphics::setWindowIcon | ( | SDL_Window & | window | ) |
Definition at line 350 of file icon.cpp.
References setStaticIcon().
Referenced by Graphics::WindowManager::initWindow().
bool Graphics::takeScreenshot | ( | ) |
Saves a screenshot to a file.
Warning: Unsafe outside the main thread.
Definition at line 110 of file screenshot.cpp.
References Common::UString::c_str(), constructFilename(), Common::enforceMainThread(), Common::ScopedPtrBase< T, Deallocator >::get(), status(), warning(), and writeBMP().
Referenced by Graphics::GraphicsManager::endScene().
|
static |
Definition at line 53 of file screenshot.cpp.
References Common::WriteFile::close(), Common::WriteFile::flush(), Common::WriteFile::open(), Common::WriteFile::write(), Common::WriteStream::writeByte(), Common::WriteStream::writeUint16LE(), and Common::WriteStream::writeUint32LE().
Referenced by takeScreenshot().
|
static |
Definition at line 87 of file dumptga.cpp.
References Graphics::ImageDecoder::MipMap::data, Common::ScopedPtrBase< T, Deallocator >::get(), Graphics::ImageDecoder::MipMap::height, Graphics::ImageDecoder::MipMap::width, and writePixel().
Referenced by dumpTGA().
|
static |
Definition at line 36 of file dumptga.cpp.
References kPixelFormatBGR, kPixelFormatBGRA, kPixelFormatRGB, kPixelFormatRGBA, and Common::WriteStream::writeByte().
Referenced by writeMipMap().
PFNGLCOMPRESSEDTEXIMAGE2DPROC Graphics::glCompressedTexImage2D |
Definition at line 71 of file graphics.cpp.
Referenced by Graphics::GraphicsManager::checkGLExtensions(), Graphics::GraphicsManager::GraphicsManager(), and Graphics::Aurora::Texture::setMipMapData().
|
static |
Definition at line 35 of file resolution.h.
Referenced by Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Engines::Jade::GUIBackground::update(), and Engines::KotOR::GUIBackground::update().
|
static |
Static version of the xoreos icon.
Definition at line 42 of file icon.cpp.
Referenced by createStaticIconSurface().