#include <W3DVideobuffer.h>
Inherits VideoBuffer.
Public Member Functions | |
| W3DVideoBuffer (Type format) | |
| virtual | ~W3DVideoBuffer () |
| virtual Bool | allocate (UnsignedInt width, UnsignedInt height) |
| Allocates buffer. | |
| virtual void | free (void) |
| Free buffer. | |
| virtual void * | lock (void) |
| Returns memory pointer to start of buffer. | |
| virtual void | unlock (void) |
| Release buffer. | |
| virtual Bool | valid (void) |
| Is the buffer valid to use. | |
| TextureClass * | texture (void) |
| Returns texture object. | |
Public Member Functions inherited from VideoBuffer | |
| VideoBuffer (Type format) | |
| virtual | ~VideoBuffer () |
| UnsignedInt | xPos (void) |
| UnsignedInt | yPos (void) |
| X pixel offset to draw into. | |
| void | setPos (UnsignedInt x, UnsignedInt y) |
| Y pixel offset to draw into. | |
| UnsignedInt | width (void) |
| Set the x and y buffer offset. | |
| UnsignedInt | height (void) |
| Returns pixel width of visible texture. | |
| UnsignedInt | textureWidth (void) |
| Returns pixel height of visible texture. | |
| UnsignedInt | textureHeight (void) |
| Returns pixel width of texture. | |
| UnsignedInt | pitch (void) |
| Returns pixel height of texture. | |
| Type | format (void) |
| Returns buffer pitch in bytes. | |
| RectClass | Rect (Real x1, Real y1, Real x2, Real y2) |
| Returns buffer pixel format. | |
Static Public Member Functions | |
| static WW3DFormat | TypeToW3DFormat (VideoBuffer::Type format) |
| static VideoBuffer::Type | W3DFormatToType (WW3DFormat w3dFormat) |
Protected Attributes | |
| TextureClass * | m_texture |
| SurfaceClass * | m_surface |
Protected Attributes inherited from VideoBuffer | |
| UnsignedInt | m_xPos |
| X pixel buffer offset. | |
| UnsignedInt | m_yPos |
| Y pixel buffer offset. | |
| UnsignedInt | m_width |
| Buffer visible width. | |
| UnsignedInt | m_height |
| Buffer height. | |
| UnsignedInt | m_textureWidth |
| Buffer visible width. | |
| UnsignedInt | m_textureHeight |
| Buffer height. | |
| UnsignedInt | m_pitch |
| buffer pitch | |
| Type | m_format |
| buffer pixel format | |
Additional Inherited Members | |
Public Types inherited from VideoBuffer | |
| enum | Type { TYPE_UNKNOWN , TYPE_R8G8B8 , TYPE_X8R8G8B8 , TYPE_R5G6B5 , TYPE_X1R5G5B5 , NUM_TYPES } |
Video buffer interface class to a W3D TextureClass
Definition at line 74 of file W3DVideobuffer.h.
| W3DVideoBuffer::W3DVideoBuffer | ( | VideoBuffer::Type | format | ) |
Definition at line 104 of file W3DVideoBuffer.cpp.
|
virtual |
Definition at line 158 of file W3DVideoBuffer.cpp.
|
virtual |
|
virtual |
|
virtual |
Returns memory pointer to start of buffer.
Implements VideoBuffer.
Definition at line 167 of file W3DVideoBuffer.cpp.
|
inline |
Returns texture object.
Definition at line 103 of file W3DVideobuffer.h.
|
static |
Definition at line 233 of file W3DVideoBuffer.cpp.
|
virtual |
|
virtual |
Is the buffer valid to use.
Implements VideoBuffer.
Definition at line 204 of file W3DVideoBuffer.cpp.
|
static |
Definition at line 262 of file W3DVideoBuffer.cpp.
|
protected |
Definition at line 79 of file W3DVideobuffer.h.
|
protected |
Definition at line 78 of file W3DVideobuffer.h.