Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
RageDisplay_GLES2 Class Reference
Inheritance diagram for RageDisplay_GLES2:
Inheritance graph
[legend]
Collaboration diagram for RageDisplay_GLES2:
Collaboration graph
[legend]

Public Member Functions

std::string Init (VideoModeParams &&p, bool bAllowUnacceleratedRenderer) override
 
std::string GetApiDescription () const override
 
virtual void GetDisplayResolutions (DisplayResolutions &out) const override
 
const RagePixelFormatDescGetPixelFormatDesc (RagePixelFormat pf) const override
 
bool BeginFrame () override
 
void EndFrame () override
 
const VideoModeParamsGetActualVideoModeParams () const override
 
void SetBlendMode (BlendMode mode) override
 
bool SupportsTextureFormat (RagePixelFormat pixfmt, bool realtime=false) override
 
bool SupportsPerVertexMatrixScale () override
 
virtual intptr_t CreateTexture (RagePixelFormat pixfmt, RageSurface *img, bool bGenerateMipMaps) override
 
void UpdateTexture (intptr_t iTexHandle, RageSurface *img, int xoffset, int yoffset, int width, int height) override
 
void DeleteTexture (intptr_t iTexHandle) override
 
void ClearAllTextures () override
 
int GetNumTextureUnits () override
 
void SetTexture (TextureUnit tu, intptr_t iTexture) override
 
void SetTextureMode (TextureUnit tu, TextureMode tm) override
 
void SetTextureWrapping (TextureUnit tu, bool b) override
 
int GetMaxTextureSize () const override
 
void SetTextureFiltering (TextureUnit tu, bool b) override
 
bool IsZWriteEnabled () const override
 
bool IsZTestEnabled () const override
 
void SetZWrite (bool b) override
 
void SetZBias (float f) override
 
void SetZTestMode (ZTestMode mode) override
 
void ClearZBuffer () override
 
void SetCullMode (CullMode mode) override
 
void SetAlphaTest (bool b) override
 
void SetMaterial (const RageColor &emissive, const RageColor &ambient, const RageColor &diffuse, const RageColor &specular, float shininess) override
 
void SetLighting (bool b) override
 
void SetLightOff (int index) override
 
void SetLightDirectional (int index, const RageColor &ambient, const RageColor &diffuse, const RageColor &specular, const RageVector3 &dir) override
 
void SetSphereEnvironmentMapping (TextureUnit tu, bool b) override
 
void SetCelShaded (int stage) override
 
void SetLineWidth (float fWidth) override
 
void SetPolygonMode (PolygonMode pm) override
 
RageCompiledGeometryCreateCompiledGeometry () override
 
void DeleteCompiledGeometry (RageCompiledGeometry *p) override
 
- Public Member Functions inherited from RageDisplay
virtual void GetDisplaySpecs (DisplaySpecs &out) const =0
 
void SetPresentTime (std::chrono::nanoseconds presentTime)
 
auto SetVideoMode (VideoModeParams &&p, bool &bNeedReloadTextures) -> std::string
 
virtual void ResolutionChanged ()
 
auto IsD3D () -> bool
 
auto IsWindowed () -> bool
 
auto GetFrameTimingAdjustment (std::chrono::steady_clock::time_point now) -> float
 
virtual auto SupportsThreadedRendering () -> bool
 
virtual void BeginConcurrentRenderingMainThread ()
 
virtual void EndConcurrentRenderingMainThread ()
 
virtual void BeginConcurrentRendering ()
 
virtual void EndConcurrentRendering ()
 
virtual auto CreateTextureLock () -> RageTextureLock *
 
virtual void SetEffectMode (EffectMode)
 
virtual auto IsEffectModeSupported (EffectMode effect) -> bool
 
virtual auto SupportsFullscreenBorderlessWindow () const -> bool
 
virtual auto CreateRenderTarget (const RenderTargetParam &, int &, int &) -> intptr_t
 
virtual auto GetRenderTarget () -> intptr_t
 
virtual void SetRenderTarget (intptr_t, bool=true)
 
void DrawQuads (const RageSpriteVertex v[], int iNumVerts)
 
void DrawQuadStrip (const RageSpriteVertex v[], int iNumVerts)
 
void DrawFan (const RageSpriteVertex v[], int iNumVerts)
 
void DrawStrip (const RageSpriteVertex v[], int iNumVerts)
 
void DrawTriangles (const RageSpriteVertex v[], int iNumVerts)
 
void DrawCompiledGeometry (const RageCompiledGeometry *p, int iMeshIndex, const std::vector< msMesh > &vMeshes)
 
void DrawLineStrip (const RageSpriteVertex v[], int iNumVerts, float LineWidth)
 
void DrawSymmetricQuadStrip (const RageSpriteVertex v[], int iNumVerts)
 
void DrawCircle (const RageSpriteVertex &v, float radius)
 
void DrawQuad (const RageSpriteVertex v[])
 
auto SaveScreenshot (const std::string &sPath, GraphicsFileFormat format) -> bool
 
virtual auto GetTextureDiagnostics (unsigned) const -> std::string
 
virtual auto GetTexture (intptr_t) -> RageSurface *
 
auto IsPredictiveFrameLimit () const -> bool
 
auto GetFPS () const -> int
 
auto GetVPF () const -> int
 
auto GetCumFPS () const -> int
 
virtual void ResetStats ()
 
virtual void ProcessStatsOnFlip ()
 
virtual auto GetStats () const -> std::string
 
void StatsAddVerts (int iNumVertsRendered)
 
void PushMatrix ()
 
void PopMatrix ()
 
void Translate (float x, float y, float z)
 
void TranslateWorld (float x, float y, float z)
 
void Scale (float x, float y, float z)
 
void RotateX (float deg)
 
void RotateY (float deg)
 
void RotateZ (float deg)
 
void SkewX (float fAmount)
 
void SkewY (float fAmount)
 
void MultMatrix (const RageMatrix &f)
 
void PostMultMatrix (const RageMatrix &f)
 
void PreMultMatrix (const RageMatrix &f)
 
void LoadIdentity ()
 
void TexturePushMatrix ()
 
void TexturePopMatrix ()
 
void TextureTranslate (float x, float y)
 
void TextureTranslate (const RageVector2 &v)
 
void CameraPushMatrix ()
 
void CameraPopMatrix ()
 
void LoadMenuPerspective (float fFOVDegrees, float fWidth, float fHeight, float fVanishPointX, float fVanishPointY)
 
void LoadLookAt (float fov, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up)
 
void CenteringPushMatrix ()
 
void CenteringPopMatrix ()
 
void ChangeCentering (int trans_x, int trans_y, int add_width, int add_height)
 
auto CreateSurfaceFromPixfmt (RagePixelFormat pixfmt, void *pixels, int width, int height, int pitch) -> RageSurface *
 
auto FindPixelFormat (int bpp, unsigned Rmask, unsigned Gmask, unsigned Bmask, unsigned Amask, bool realtime=false) -> RagePixelFormat
 
void PushSelf (lua_State *L)
 

Protected Member Functions

void DrawQuadsInternal (const RageSpriteVertex v[], int iNumVerts) override
 
void DrawQuadStripInternal (const RageSpriteVertex v[], int iNumVerts) override
 
void DrawFanInternal (const RageSpriteVertex v[], int iNumVerts) override
 
void DrawStripInternal (const RageSpriteVertex v[], int iNumVerts) override
 
void DrawTrianglesInternal (const RageSpriteVertex v[], int iNumVerts) override
 
void DrawCompiledGeometryInternal (const RageCompiledGeometry *p, int iMeshIndex) override
 
void DrawLineStripInternal (const RageSpriteVertex v[], int iNumVerts, float LineWidth) override
 
void DrawSymmetricQuadStripInternal (const RageSpriteVertex v[], int iNumVerts) override
 
std::string TryVideoMode (const VideoModeParams &p, bool &bNewDeviceOut) override
 
RageSurfaceCreateScreenshot () override
 
RageMatrix GetOrthoMatrix (float l, float r, float b, float t, float zn, float zf) override
 
bool SupportsSurfaceFormat (RagePixelFormat pixfmt)
 
bool SupportsRenderToTexture () const
 
- Protected Member Functions inherited from RageDisplay
virtual void DrawCircleInternal (const RageSpriteVertex &v, float radius)
 
virtual auto IsD3DInternal () -> bool
 
void DrawPolyLine (const RageSpriteVertex &p1, const RageSpriteVertex &p2, float LineWidth)
 
void DrawPolyLines (const RageSpriteVertex v[], int iNumVerts, float LineWidth)
 
void SetDefaultRenderStates ()
 
auto GetPerspectiveMatrix (float fovy, float aspect, float zNear, float zFar) -> RageMatrix
 
virtual auto GetFrustumMatrix (float l, float r, float b, float t, float zn, float zf) -> RageMatrix
 
auto GetCenteringMatrix (float fTranslateX, float fTranslateY, float fAddWidth, float fAddHeight) -> RageMatrix
 
void UpdateCentering ()
 
auto GetCentering () const -> const RageMatrix *
 
auto GetProjectionTop () const -> const RageMatrix *
 
auto GetViewTop () const -> const RageMatrix *
 
auto GetWorldTop () const -> const RageMatrix *
 
auto GetTextureTop () const -> const RageMatrix *
 
void FrameLimitBeforeVsync ()
 
void FrameLimitAfterVsync (int iFPS)
 

Additional Inherited Members

- Public Types inherited from RageDisplay
enum  GraphicsFileFormat { SAVE_LOSSLESS , SAVE_LOSSLESS_SENSIBLE , SAVE_LOSSY_LOW_QUAL , SAVE_LOSSY_HIGH_QUAL }
 

Member Function Documentation

◆ BeginFrame()

bool RageDisplay_GLES2::BeginFrame ( )
overridevirtual

Reimplemented from RageDisplay.

◆ ClearAllTextures()

void RageDisplay_GLES2::ClearAllTextures ( )
overridevirtual

Implements RageDisplay.

◆ ClearZBuffer()

void RageDisplay_GLES2::ClearZBuffer ( )
overridevirtual

Implements RageDisplay.

◆ CreateCompiledGeometry()

RageCompiledGeometry * RageDisplay_GLES2::CreateCompiledGeometry ( )
overridevirtual

Implements RageDisplay.

◆ CreateScreenshot()

RageSurface * RageDisplay_GLES2::CreateScreenshot ( )
overrideprotectedvirtual

Implements RageDisplay.

◆ CreateTexture()

intptr_t RageDisplay_GLES2::CreateTexture ( RagePixelFormat  pixfmt,
RageSurface img,
bool  bGenerateMipMaps 
)
overridevirtual

Implements RageDisplay.

◆ DeleteCompiledGeometry()

void RageDisplay_GLES2::DeleteCompiledGeometry ( RageCompiledGeometry p)
overridevirtual

Implements RageDisplay.

◆ DeleteTexture()

void RageDisplay_GLES2::DeleteTexture ( intptr_t  iTexHandle)
overridevirtual

Implements RageDisplay.

◆ DrawCompiledGeometryInternal()

void RageDisplay_GLES2::DrawCompiledGeometryInternal ( const RageCompiledGeometry p,
int  iMeshIndex 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ DrawFanInternal()

void RageDisplay_GLES2::DrawFanInternal ( const RageSpriteVertex  v[],
int  iNumVerts 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ DrawLineStripInternal()

void RageDisplay_GLES2::DrawLineStripInternal ( const RageSpriteVertex  v[],
int  iNumVerts,
float  LineWidth 
)
overrideprotectedvirtual

Reimplemented from RageDisplay.

◆ DrawQuadsInternal()

void RageDisplay_GLES2::DrawQuadsInternal ( const RageSpriteVertex  v[],
int  iNumVerts 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ DrawQuadStripInternal()

void RageDisplay_GLES2::DrawQuadStripInternal ( const RageSpriteVertex  v[],
int  iNumVerts 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ DrawStripInternal()

void RageDisplay_GLES2::DrawStripInternal ( const RageSpriteVertex  v[],
int  iNumVerts 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ DrawSymmetricQuadStripInternal()

void RageDisplay_GLES2::DrawSymmetricQuadStripInternal ( const RageSpriteVertex  v[],
int  iNumVerts 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ DrawTrianglesInternal()

void RageDisplay_GLES2::DrawTrianglesInternal ( const RageSpriteVertex  v[],
int  iNumVerts 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ EndFrame()

void RageDisplay_GLES2::EndFrame ( )
overridevirtual

Reimplemented from RageDisplay.

◆ GetActualVideoModeParams()

const VideoModeParams * RageDisplay_GLES2::GetActualVideoModeParams ( ) const
overridevirtual

Implements RageDisplay.

◆ GetApiDescription()

std::string RageDisplay_GLES2::GetApiDescription ( ) const
overridevirtual

Implements RageDisplay.

◆ GetMaxTextureSize()

int RageDisplay_GLES2::GetMaxTextureSize ( ) const
overridevirtual

Implements RageDisplay.

◆ GetNumTextureUnits()

int RageDisplay_GLES2::GetNumTextureUnits ( )
overridevirtual

Implements RageDisplay.

◆ GetOrthoMatrix()

RageMatrix RageDisplay_GLES2::GetOrthoMatrix ( float  l,
float  r,
float  b,
float  t,
float  zn,
float  zf 
)
overrideprotectedvirtual

Reimplemented from RageDisplay.

◆ GetPixelFormatDesc()

const RageDisplay::RagePixelFormatDesc * RageDisplay_GLES2::GetPixelFormatDesc ( RagePixelFormat  pf) const
overridevirtual

Implements RageDisplay.

◆ Init()

std::string RageDisplay_GLES2::Init ( VideoModeParams &&  p,
bool  bAllowUnacceleratedRenderer 
)
overridevirtual

Implements RageDisplay.

◆ IsZTestEnabled()

bool RageDisplay_GLES2::IsZTestEnabled ( ) const
overridevirtual

Implements RageDisplay.

◆ IsZWriteEnabled()

bool RageDisplay_GLES2::IsZWriteEnabled ( ) const
overridevirtual

Implements RageDisplay.

◆ SetAlphaTest()

void RageDisplay_GLES2::SetAlphaTest ( bool  b)
overridevirtual

Implements RageDisplay.

◆ SetBlendMode()

void RageDisplay_GLES2::SetBlendMode ( BlendMode  mode)
overridevirtual

Implements RageDisplay.

◆ SetCelShaded()

void RageDisplay_GLES2::SetCelShaded ( int  stage)
overridevirtual

Implements RageDisplay.

◆ SetCullMode()

void RageDisplay_GLES2::SetCullMode ( CullMode  mode)
overridevirtual

Implements RageDisplay.

◆ SetLightDirectional()

void RageDisplay_GLES2::SetLightDirectional ( int  index,
const RageColor ambient,
const RageColor diffuse,
const RageColor specular,
const RageVector3 dir 
)
overridevirtual

Implements RageDisplay.

◆ SetLighting()

void RageDisplay_GLES2::SetLighting ( bool  b)
overridevirtual

Implements RageDisplay.

◆ SetLightOff()

void RageDisplay_GLES2::SetLightOff ( int  index)
overridevirtual

Implements RageDisplay.

◆ SetLineWidth()

void RageDisplay_GLES2::SetLineWidth ( float  fWidth)
overridevirtual

Reimplemented from RageDisplay.

◆ SetMaterial()

void RageDisplay_GLES2::SetMaterial ( const RageColor emissive,
const RageColor ambient,
const RageColor diffuse,
const RageColor specular,
float  shininess 
)
overridevirtual

Implements RageDisplay.

◆ SetPolygonMode()

void RageDisplay_GLES2::SetPolygonMode ( PolygonMode  pm)
overridevirtual

Reimplemented from RageDisplay.

◆ SetSphereEnvironmentMapping()

void RageDisplay_GLES2::SetSphereEnvironmentMapping ( TextureUnit  tu,
bool  b 
)
overridevirtual

Implements RageDisplay.

◆ SetTexture()

void RageDisplay_GLES2::SetTexture ( TextureUnit  tu,
intptr_t  iTexture 
)
overridevirtual

Implements RageDisplay.

◆ SetTextureFiltering()

void RageDisplay_GLES2::SetTextureFiltering ( TextureUnit  tu,
bool  b 
)
overridevirtual

Implements RageDisplay.

◆ SetTextureMode()

void RageDisplay_GLES2::SetTextureMode ( TextureUnit  tu,
TextureMode  tm 
)
overridevirtual

Implements RageDisplay.

◆ SetTextureWrapping()

void RageDisplay_GLES2::SetTextureWrapping ( TextureUnit  tu,
bool  b 
)
overridevirtual

Implements RageDisplay.

◆ SetZBias()

void RageDisplay_GLES2::SetZBias ( float  f)
overridevirtual

Implements RageDisplay.

◆ SetZTestMode()

void RageDisplay_GLES2::SetZTestMode ( ZTestMode  mode)
overridevirtual

Implements RageDisplay.

◆ SetZWrite()

void RageDisplay_GLES2::SetZWrite ( bool  b)
overridevirtual

Implements RageDisplay.

◆ SupportsPerVertexMatrixScale()

bool RageDisplay_GLES2::SupportsPerVertexMatrixScale ( )
overridevirtual

Implements RageDisplay.

◆ SupportsRenderToTexture()

bool RageDisplay_GLES2::SupportsRenderToTexture ( ) const
inlineprotectedvirtual

Reimplemented from RageDisplay.

◆ SupportsTextureFormat()

bool RageDisplay_GLES2::SupportsTextureFormat ( RagePixelFormat  pixfmt,
bool  realtime = false 
)
overridevirtual

Implements RageDisplay.

◆ TryVideoMode()

std::string RageDisplay_GLES2::TryVideoMode ( const VideoModeParams p,
bool &  bNewDeviceOut 
)
overrideprotectedvirtual

Implements RageDisplay.

◆ UpdateTexture()

void RageDisplay_GLES2::UpdateTexture ( intptr_t  iTexHandle,
RageSurface img,
int  xoffset,
int  yoffset,
int  width,
int  height 
)
overridevirtual

Implements RageDisplay.


The documentation for this class was generated from the following files: