Definition at line 56 of file VedaMachineDreamcast.h.
Public Member Functions | |
DCInternalViewPort (DCInternalViewPort *_pFather) | |
Constructor. | |
virtual | ~DCInternalViewPort () |
Destructor. See DeleteViewport(). | |
virtual void | Clear (float _red=0.0f, float _green=0.0f, float _blue=0.0f) |
Reset color to black (or given color),and depth buffer, of this ViewPort. | |
virtual void | RenderMesh (InternalObject3DBuffer *_pMeshBuffer, InternalTexture *_pTexture=0L) |
Render a 3D Object. The vertexes are transformed with matrix _pMatrix, the object shape is defined by _pMeshBuffer, the texture of the object is defined by _pTexture, the ViewPort that define the rectangle where to draw, and the camera parameters is _pViewPort, or the default viewport if not specified. Note drawings on the main screen needs a SwapScreenBuffer() to be shown at each frames. | |
virtual void | DrawRGBARectangle (unsigned char *_prgbaTable, unsigned int _PixelWidth, unsigned int _PixelHeight) |
Render directly a 32bit pixel bitmap image from memory on a viewport. Note drawings on the main screen needs a SwapScreenBuffer() to be shown at each frames. | |
virtual void | SwapBuffer () |
Swap buffer so that what was drawn on the viewport is shown. this is needed to active all Clear(), RenderMesh() ,... It has to be done with main screen viewport like texture-rendering viewports. | |
void | ResetRootPixelSize (unsigned int _pixelWidth, unsigned int _pixelHeight) |
Change the root viewport pixel resolution.This is a low level call in case of resize or screen init. | |
int | GetPixelX1 () |
get the rectangle pixel coordinates in the root viewport bitmap. | |
int | GetPixelY1 () |
get the rectangle pixel coordinates in the root viewport bitmap. | |
int | GetPixelX2 () |
get the rectangle pixel coordinates in the root viewport bitmap. | |
int | GetPixelY2 () |
get the rectangle pixel coordinates in the root viewport bitmap. | |
float | GetFov () |
for 3D rendering, Distance between the projected plane and the center. must be >0.001 | |
float | GetNearCutPlane () |
float | GetFarCutPlane () |
virtual void | Matrix_LoadID (eLoadId _enum=eLoadId_All) |
Tool for other methods: Set the current GL viewport matrix to an InternalViewPort. | |
Public Attributes | |
float | m_ScaleRootX1 |
2d Scale coordinates of the rectangle recomputed in the Root ViewPort scale. | |
float | m_ScaleRootY1 |
float | m_ScaleRootX2 |
float | m_ScaleRootY2 |
float | m_ClippingRootX1 |
2d coordinates of the rectangle recomputed in the Root ViewPort scale. | |
float | m_ClippingRootY1 |
float | m_ClippingRootX2 |
float | m_ClippingRootY2 |
float | m_FinalClipFrustrumX1 |
real clipped frustrum | |
float | m_FinalClipFrustrumY1 |
float | m_FinalClipFrustrumX2 |
float | m_FinalClipFrustrumY2 |
DCInternalTexture * | m_pRenderTexture |
in case of texture rendering, otherwise 0L: | |
pvr_ptr_t | m_pvrmem |
for texture rendering, we manage the PVR mem: | |
int | m_RenderTextureOGLHandle |
OGL texture:. | |
VedaMachineDreamcast * | m_pMachine |
Protected Attributes | |
bool | m_Valid |
if false, can't be drawn, because invalid coordinates. | |
int | m_pixel_x1 |
the rectangle coordinates in term of screen pixel. | |
int | m_pixel_y1 |
the rectangle coordinates in term of screen pixel. | |
int | m_pixel_x2 |
the rectangle coordinates in term of screen pixel. | |
int | m_pixel_y2 |
the rectangle coordinates in term of screen pixel. | |
MatrixModel | m_Matrix |
we manage a 3D transformation matrix | |
InternalViewPort ** | m_ppClippingHierarchyAttached |
|
Constructor.
|
|
Destructor. See DeleteViewport().
|
|
Reset color to black (or given color),and depth buffer, of this ViewPort.
|
|
Render directly a 32bit pixel bitmap image from memory on a viewport. Note drawings on the main screen needs a SwapScreenBuffer() to be shown at each frames.
|
|
for 3D rendering, Distance between the projected plane and the center. must be >0.001
Definition at line 158 of file VedaMachineDreamcast.h. |
|
get the rectangle pixel coordinates in the root viewport bitmap.
Definition at line 141 of file VedaMachineDreamcast.h. References m_pixel_x1. |
|
get the rectangle pixel coordinates in the root viewport bitmap.
Definition at line 151 of file VedaMachineDreamcast.h. References m_pixel_x2. |
|
get the rectangle pixel coordinates in the root viewport bitmap.
Definition at line 146 of file VedaMachineDreamcast.h. References m_pixel_y1. |
|
get the rectangle pixel coordinates in the root viewport bitmap.
Definition at line 156 of file VedaMachineDreamcast.h. References m_pixel_y2. |
|
Tool for other methods: Set the current GL viewport matrix to an InternalViewPort.
|
|
Render a 3D Object. The vertexes are transformed with matrix _pMatrix, the object shape is defined by _pMeshBuffer, the texture of the object is defined by _pTexture, the ViewPort that define the rectangle where to draw, and the camera parameters is _pViewPort, or the default viewport if not specified. Note drawings on the main screen needs a SwapScreenBuffer() to be shown at each frames.
|
|
Change the root viewport pixel resolution.This is a low level call in case of resize or screen init.
|
|
Swap buffer so that what was drawn on the viewport is shown. this is needed to active all Clear(), RenderMesh() ,... It has to be done with main screen viewport like texture-rendering viewports.
|
|
2d coordinates of the rectangle recomputed in the Root ViewPort scale.
Definition at line 171 of file VedaMachineDreamcast.h. |
|
real clipped frustrum
Definition at line 177 of file VedaMachineDreamcast.h. |
|
we manage a 3D transformation matrix
Definition at line 217 of file VedaMachineDreamcast.h. |
|
the rectangle coordinates in term of screen pixel.
Definition at line 209 of file VedaMachineDreamcast.h. Referenced by GetPixelX1(). |
|
the rectangle coordinates in term of screen pixel.
Definition at line 213 of file VedaMachineDreamcast.h. Referenced by GetPixelX2(). |
|
the rectangle coordinates in term of screen pixel.
Definition at line 211 of file VedaMachineDreamcast.h. Referenced by GetPixelY1(). |
|
the rectangle coordinates in term of screen pixel.
Definition at line 215 of file VedaMachineDreamcast.h. Referenced by GetPixelY2(). |
|
the pointer where this viewport was attached in the clipping hierarchy, father or brother. Used to destroy the object. Use ClippingHierarchy_AttachTo to change it. Definition at line 227 of file VedaMachineDreamcast.h. |
|
in case of texture rendering, otherwise 0L:
Definition at line 183 of file VedaMachineDreamcast.h. |
|
for texture rendering, we manage the PVR mem:
Definition at line 185 of file VedaMachineDreamcast.h. |
|
OGL texture:.
Definition at line 187 of file VedaMachineDreamcast.h. |
|
2d Scale coordinates of the rectangle recomputed in the Root ViewPort scale.
Definition at line 162 of file VedaMachineDreamcast.h. |
|
if false, can't be drawn, because invalid coordinates.
Definition at line 207 of file VedaMachineDreamcast.h. |
/\/\ 4 N k ! N D _______ _ __ ___ _____ ___ _ _ ____ ___________ __//___ /________ |/ / ___________\_______/ \ / _ _ \/ _ / _ / _/_/____/ _ __ / / / / / / / \ \/ / / \ \ / \\___/___/___/ ¯ _____/_____/ ______\___/_____/\________\\ \________/_ ___ __ l____\ /elD! http://www.m4nkind.com \____/