Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | List of all members
Burger::Shader2DColorVertexOpenGL Class Reference
Inheritance diagram for Burger::Shader2DColorVertexOpenGL:
Inheritance graph
[legend]
Collaboration diagram for Burger::Shader2DColorVertexOpenGL:
Collaboration graph
[legend]

Public Member Functions

const Burger::StaticRTTIget_StaticRTTI (void) const noexcept override
 Get the description to the class.
 
 Shader2DColorVertexOpenGL (Display *pDisplay, const uint_t *pVertexMembers)
 
uint_t CheckLoad (Display *pDisplay) override
 Load data onto the video display card.
 
void Release (Display *pDisplay) override
 Release the shaders.
 
void SetPosition (float fX, float fY, float fWidth, float fHeight) override
 
void SetPosition (const Vector4D_t *pPosition) override
 
- Public Member Functions inherited from Burger::Shader2DColorVertex
 Shader2DColorVertex (Display *pDisplay, const uint_t *pVertexMembers)
 Default constructor for an Effect2D.
 
- Public Member Functions inherited from Burger::Effect
 Effect ()
 Standard constructor.
 
virtual ~Effect ()
 Standard destructor.
 
D3DPixelShaderGetPixelShader360 (void) const
 Get the pointer to the Xbox 360 Pixel shader instance.
 
D3DVertexShaderGetVertexShader360 (void) const
 Get the pointer to the Xbox 360 Vertex shader instance.
 
D3DDeviceGetDevice360 (void) const
 Get the pointer to the Xbox 360 device instance.
 
uint_t GetProgramID (void) const
 Get the OpenGL program ID for the compiled effect.
 
IDirect3DPixelShader9GetPixelShaderDX9 (void) const
 Get the pointer to the DirectX 9 Pixel shader instance.
 
IDirect3DVertexShader9GetVertexShaderDX9 (void) const
 Get the pointer to the DirectX 9 Vertex shader instance.
 
IDirect3DDevice9GetDeviceDX9 (void) const
 Get the pointer to the DirectX 9 device instance.
 
- Public Member Functions inherited from Burger::DisplayObject
DisplayObjectGetNext (void) const
 Get the next display object in the global linked list.
 
DisplayObjectGetPrevious (void) const
 Get the previous display object in the global linked list.
 
- Public Member Functions inherited from Burger::ReferenceCounter
 ReferenceCounter () noexcept
 Sets the reference count to zero.
 
virtual ~ReferenceCounter ()
 Destructor.
 
void AddRef (void) noexcept
 Increase the reference count by 1.
 
void Release (void) noexcept
 Decrease the reference count by 1.
 
- Public Member Functions inherited from Burger::Base
const charget_class_name (void) const noexcept
 Get the name of the class.
 
virtual ~Base () noexcept=default
 Destructor.
 

Static Public Attributes

static const Burger::StaticRTTI g_StaticRTTI
 
- Static Public Attributes inherited from Burger::Shader2DColorVertex
static const Burger::StaticRTTI g_StaticRTTI
 
- Static Public Attributes inherited from Burger::Effect
static const Burger::StaticRTTI g_StaticRTTI
 The global description of the class.
 
- Static Public Attributes inherited from Burger::DisplayObject
static const Burger::StaticRTTI g_StaticRTTI
 The global description of the class.
 
- Static Public Attributes inherited from Burger::ReferenceCounter
static const Burger::StaticRTTI g_StaticRTTI
 The global description of the class.
 
- Static Public Attributes inherited from Burger::Base
static const Burger::StaticRTTI g_StaticRTTI
 The global description of the class.
 

Protected Attributes

int_t m_iEffect2DPosition
 Index for the position.
 
- Protected Attributes inherited from Burger::Shader2DColorVertex
int_t m_iEffect2DPosition
 (OpenGL only) Index for the position
 
- Protected Attributes inherited from Burger::Effect
D3DPixelShaderm_pPixelShader
 (Xbox360 only) Pixel shader
 
D3DVertexShaderm_pVertexShader
 (Xbox360 only) Vertex shader
 
D3DDevicem_pDevice
 (Xbox360 only) parent device
 
union { 
 
   struct { 
 
      IDirect3DPixelShader9 *   m_pPixelShader 
 DirectX9 Pixel shader. More...
 
      IDirect3DVertexShader9 *   m_pVertexShader 
 DirectX9 Vertex shader. More...
 
      IDirect3DDevice9 *   m_pDevice 
 DirectX9 parent device. More...
 
   }   m_DX9 
 DirectX 9 specific data. More...
 
   struct { 
 
      uint_t   m_uProgramID 
 OpenGL Program ID for the compiled shader. More...
 
   }   m_GL 
 OpenGL specific data. More...
 
m_ShaderData 
 Union of vertex/pixel shader data.
 
- Protected Attributes inherited from Burger::DisplayObject
DisplayObjectm_pNextDisplayObject
 Pointer to the next DisplayObject.
 
DisplayObjectm_pPrevDisplayObject
 Pointer to the previous DisplayObject.
 

Private Member Functions

 Shader2DColorVertexOpenGL (const Shader2DColorVertexOpenGL &)=delete
 
Shader2DColorVertexOpenGLoperator= (const Shader2DColorVertexOpenGL &)=delete
 
 Shader2DColorVertexOpenGL (Shader2DColorVertexOpenGL &&)=delete
 
Shader2DColorVertexOpenGLoperator= (Shader2DColorVertexOpenGL &&)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from Burger::DisplayObject
static DisplayObjectGetFirstObject (void)
 Get the first display object in the global linked list.
 
static void ReleaseAll (Display *pDisplay)
 Release all display objects.
 
- Protected Member Functions inherited from Burger::Effect
void ReleaseGL (void)
 Release the OpenGL data.
 
void ReleaseDX9 (void)
 Release the DirectX 9 data.
 
- Protected Member Functions inherited from Burger::DisplayObject
 DisplayObject (void)
 Add this display object to the global linked list.
 
virtual ~DisplayObject ()
 Remove this display object from the global linked list.
 
- Static Protected Attributes inherited from Burger::DisplayObject
static DisplayObjectg_pHead = NULL
 Global pointer to the linked list of display objects.
 

Constructor & Destructor Documentation

◆ Shader2DColorVertexOpenGL() [1/3]

Burger::Shader2DColorVertexOpenGL::Shader2DColorVertexOpenGL ( const Shader2DColorVertexOpenGL & )
privatedelete

◆ Shader2DColorVertexOpenGL() [2/3]

Burger::Shader2DColorVertexOpenGL::Shader2DColorVertexOpenGL ( Shader2DColorVertexOpenGL && )
privatedelete

◆ Shader2DColorVertexOpenGL() [3/3]

Burger::Shader2DColorVertexOpenGL::Shader2DColorVertexOpenGL ( Display * pDisplay,
const uint_t * pVertexMembers )

Member Function Documentation

◆ CheckLoad()

uint_t Burger::Shader2DColorVertexOpenGL::CheckLoad ( Display * pDisplay)
overridevirtual

Load data onto the video display card.


Allow the derived class to load a display object from disk or memory and convert into a proper data for uploading onto the display card.

Returns
Zero if no error, non zero if the object couldn't be loaded
See also
Release(Display *)

Implements Burger::DisplayObject.

◆ get_StaticRTTI()

const Burger::StaticRTTI * Burger::Shader2DColorVertexOpenGL::get_StaticRTTI ( void ) const
overridevirtualnoexcept

Get the description to the class.


This virtual function will pull the pointer to the StaticRTTI instance that has the name of the class. Due to it being virtual, it will be the name of the most derived class.

Returns
Pointer to a global, read only instance of StaticRTTI for the true class

Reimplemented from Burger::Shader2DColorVertex.

◆ operator=() [1/2]

Shader2DColorVertexOpenGL & Burger::Shader2DColorVertexOpenGL::operator= ( const Shader2DColorVertexOpenGL & )
privatedelete

◆ operator=() [2/2]

Shader2DColorVertexOpenGL & Burger::Shader2DColorVertexOpenGL::operator= ( Shader2DColorVertexOpenGL && )
privatedelete

◆ Release()

void Burger::Shader2DColorVertexOpenGL::Release ( Display * pDisplay)
overridevirtual

Release the shaders.


On shutdown and Direct X reset, this function is called to release the shader resources.

Parameters
pDisplayPointer to the Display instance

Reimplemented from Burger::Effect.

◆ SetPosition() [1/2]

void Burger::Shader2DColorVertexOpenGL::SetPosition ( const Vector4D_t * pPosition)
overridevirtual

◆ SetPosition() [2/2]

void Burger::Shader2DColorVertexOpenGL::SetPosition ( float fX,
float fY,
float fWidth,
float fHeight )
overridevirtual

Member Data Documentation

◆ g_StaticRTTI

const Burger::StaticRTTI Burger::Shader2DColorVertexOpenGL::g_StaticRTTI
static

◆ m_iEffect2DPosition

int_t Burger::Shader2DColorVertexOpenGL::m_iEffect2DPosition
protected

Index for the position.