![]() |
ManaPlus
|
#include <normalopenglgraphics.h>
Public Member Functions | |
| NormalOpenGLGraphics () | |
| ~NormalOpenGLGraphics () | |
| void | drawQuadArrayfi (const int size) A_INLINE |
| void | drawQuadArrayfiCached (const int size) A_INLINE |
| void | drawQuadArrayfi (const GLint *const intVertArray, const GLfloat *const floatTexArray, const int size) A_INLINE |
| void | drawQuadArrayii (const int size) A_INLINE |
| void | drawQuadArrayiiCached (const int size) A_INLINE |
| void | drawQuadArrayii (const GLint *const intVertArray, const GLint *const intTexArray, const int size) A_INLINE |
| void | drawLineArrayi (const int size) A_INLINE |
| void | drawLineArrayf (const int size) A_INLINE |
| void | testDraw () |
Public Member Functions inherited from Graphics | |
| virtual | ~Graphics () |
| void | setWindow (SDL_Surface *const window, const int width, const int height) |
| SDL_Surface * | getWindow () const |
| void | setSync (const bool sync) |
| bool | getSync () const |
| virtual bool | setVideoMode (const int w, const int h, const int scale, const int bpp, const bool fs, const bool hwaccel, const bool resize, const bool noFrame, const bool allowHighDPI)=0 |
| bool | setFullscreen (const bool fs) |
| virtual bool | resizeScreen (const int width, const int height) |
| virtual void | restoreContext () |
| virtual void | drawRescaledImage (const Image *const image, int dstX, int dstY, const int desiredWidth, const int desiredHeight)=0 |
| virtual void | drawPattern (const Image *const image, const int x, const int y, const int w, const int h)=0 |
| virtual void | drawRescaledPattern (const Image *const image, const int x, const int y, const int w, const int h, const int scaledWidth, const int scaledHeight)=0 |
| virtual void | drawImageRect (const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0 |
| virtual void | calcPattern (ImageVertexes *const vert, const Image *const image, const int x, const int y, const int w, const int h) const =0 |
| virtual void | calcPattern (ImageCollection *const vert, const Image *const image, const int x, const int y, const int w, const int h) const =0 |
| virtual void | calcTileVertexes (ImageVertexes *const vert, const Image *const image, int x, int y) const =0 |
| virtual void | calcTileSDL (ImageVertexes *const vert, int x, int y) const |
| virtual void | drawTileVertexes (const ImageVertexes *const vert)=0 |
| virtual void | drawTileCollection (const ImageCollection *const vertCol)=0 |
| virtual void | calcTileCollection (ImageCollection *const vertCol, const Image *const image, int x, int y)=0 |
| virtual void | calcWindow (ImageCollection *const vertCol, const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0 |
| virtual void | fillRectangle (const Rect &rectangle)=0 |
| virtual void | updateScreen ()=0 |
| void | setWindowSize (const int width, const int height) |
| int | getWidth () const |
| int | getHeight () const |
| int | getMemoryUsage () const |
| virtual void | drawNet (const int x1, const int y1, const int x2, const int y2, const int width, const int height) |
| ClipRect & | getTopClip () const |
| void | setRedraw (const bool n) |
| bool | getRedraw () const |
| void | setSecure (const bool n) |
| bool | getSecure () const |
| int | getBpp () const |
| bool | getFullScreen () const |
| bool | getHWAccel () const |
| bool | getDoubleBuffer () const |
| RenderType | getOpenGL () const |
| void | setNoFrame (const bool n) |
| const std::string & | getName () const |
| virtual void | initArrays (const int vertCount) |
| virtual void | setColor (const Color &color) |
| const Color & | getColor () const |
| virtual void | drawImage (const Image *const image, int dstX, int dstY)=0 |
| virtual void | copyImage (const Image *const image, int dstX, int dstY)=0 |
| virtual void | drawImageCached (const Image *const image, int srcX, int srcY)=0 |
| virtual void | drawPatternCached (const Image *const image, const int x, const int y, const int w, const int h)=0 |
| virtual void | completeCache ()=0 |
| int | getScale () const |
| virtual bool | isAllowScale () const |
| void | setScale (int scale) |
| virtual void | pushClipArea (const Rect &area) |
| virtual void | popClipArea () |
| virtual void | drawLine (int x1, int y1, int x2, int y2)=0 |
| virtual void | drawRectangle (const Rect &rectangle)=0 |
| virtual void | createGLContext (const bool custom) |
| virtual void | drawPoint (int x, int y)=0 |
| virtual void | beginDraw () |
| virtual void | endDraw () |
| virtual void | clearScreen () const |
| virtual void | deleteArrays () |
| virtual void | postInit () |
| virtual void | finalize (ImageCollection *const col) |
| virtual void | finalize (ImageVertexes *const vert) |
| virtual void | removeArray (const uint32_t sz, uint32_t *const arr) |
| virtual void | screenResized () |
Private Attributes | |
| GLfloat * | mFloatTexArray |
| GLint * | mIntTexArray |
| GLint * | mIntVertArray |
| GLfloat * | mFloatTexArrayCached |
| GLint * | mIntTexArrayCached |
| GLint * | mIntVertArrayCached |
| float | mAlphaCached |
| int | mVpCached |
| bool | mTexture |
| bool | mIsByteColor |
| Color | mByteColor |
| GLuint | mImageCached |
| float | mFloatColor |
| int | mMaxVertices |
| bool | mColorAlpha |
| FBOInfo | mFbo |
Additional Inherited Members | |
Public Types inherited from Graphics | |
| enum | Alignment { LEFT = 0 , CENTER , RIGHT } |
Static Public Member Functions inherited from Graphics | |
| static void | cleanUp () |
Data Fields inherited from Graphics | |
| int | mWidth |
| int | mHeight |
| int | mActualWidth |
| int | mActualHeight |
Protected Member Functions inherited from Graphics | |
| Graphics () | |
| void | setMainFlags (const int w, const int h, const int scale, const int bpp, const bool fs, const bool hwaccel, const bool resize, const bool noFrame, const bool allowHighDPI) |
| int | getOpenGLFlags () const |
| int | getSoftwareFlags () const |
| bool | setOpenGLMode () |
| void | updateMemoryInfo () |
| bool | videoInfo () |
| void | setOpenGLFlags () |
Protected Attributes inherited from Graphics | |
| MStack< ClipRect > | mClipStack |
| SDL_Surface * | mWindow |
| int | mBpp |
| bool | mAlpha |
| bool | mFullscreen |
| bool | mHWAccel |
| bool | mRedraw |
| bool | mDoubleBuffer |
| SDL_Rect | mRect |
| bool | mSecure |
| RenderType | mOpenGL |
| bool | mEnableResize |
| bool | mNoFrame |
| bool | mAllowHighDPI |
| std::string | mName |
| int | mStartFreeMem |
| bool | mSync |
| int | mScale |
| Color | mColor |
Static Protected Attributes inherited from Graphics | |
| static void * | mGLContext = 0 |
Definition at line 64 of file normalopenglgraphics.h.
| NormalOpenGLGraphics::NormalOpenGLGraphics | ( | ) |
Definition at line 100 of file normalopenglgraphics.cpp.
References Graphics::mName, Graphics::mOpenGL, and RENDER_NORMAL_OPENGL.
| NormalOpenGLGraphics::~NormalOpenGLGraphics | ( | ) |
|
inline |
Definition at line 1679 of file normalopenglgraphics.cpp.
References graphicsManager, GraphicsManager::logError(), EmoteDB::size(), and anonymous_namespace{normalopenglgraphics.cpp}::vertPtr.
|
inline |
Definition at line 1665 of file normalopenglgraphics.cpp.
References graphicsManager, GraphicsManager::logError(), EmoteDB::size(), and anonymous_namespace{normalopenglgraphics.cpp}::vertPtr.
|
inline |
Definition at line 1600 of file normalopenglgraphics.cpp.
References graphicsManager, GraphicsManager::logError(), EmoteDB::size(), and anonymous_namespace{normalopenglgraphics.cpp}::vertPtr.
|
inline |
Definition at line 1573 of file normalopenglgraphics.cpp.
References bindPointerIntFloat(), graphicsManager, GraphicsManager::logError(), and EmoteDB::size().
|
inline |
Definition at line 1586 of file normalopenglgraphics.cpp.
References bindPointerIntFloat(), graphicsManager, GraphicsManager::logError(), and EmoteDB::size().
|
inline |
Definition at line 1646 of file normalopenglgraphics.cpp.
References graphicsManager, GraphicsManager::logError(), EmoteDB::size(), and anonymous_namespace{normalopenglgraphics.cpp}::vertPtr.
|
inline |
Definition at line 1619 of file normalopenglgraphics.cpp.
References bindPointerInt(), graphicsManager, GraphicsManager::logError(), and EmoteDB::size().
|
inline |
Definition at line 1632 of file normalopenglgraphics.cpp.
References bindPointerInt(), graphicsManager, GraphicsManager::logError(), and EmoteDB::size().
|
virtual |
Reimplemented from Graphics.
Definition at line 415 of file normalopenglgraphics.cpp.
References bindPointerInt(), bindPointerIntFloat(), graphicsManager, GraphicsManager::logError(), and OpenGLImageHelper::mTextureType.
|
private |
Definition at line 120 of file normalopenglgraphics.h.
|
private |
Definition at line 125 of file normalopenglgraphics.h.
|
private |
Definition at line 129 of file normalopenglgraphics.h.
|
private |
Definition at line 137 of file normalopenglgraphics.h.
|
private |
Definition at line 127 of file normalopenglgraphics.h.
|
private |
Definition at line 114 of file normalopenglgraphics.h.
|
private |
Definition at line 117 of file normalopenglgraphics.h.
|
private |
Definition at line 126 of file normalopenglgraphics.h.
|
private |
Definition at line 115 of file normalopenglgraphics.h.
|
private |
Definition at line 118 of file normalopenglgraphics.h.
|
private |
Definition at line 116 of file normalopenglgraphics.h.
|
private |
Definition at line 119 of file normalopenglgraphics.h.
|
private |
Definition at line 124 of file normalopenglgraphics.h.
|
private |
Definition at line 128 of file normalopenglgraphics.h.
|
private |
Definition at line 122 of file normalopenglgraphics.h.
|
private |
Definition at line 121 of file normalopenglgraphics.h.