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

Public Member Functions

std::string Init (VideoModeParams &&p, bool bAllowUnacceleratedRenderer) override
 
std::string GetApiDescription () const override
 
void GetDisplaySpecs (DisplaySpecs &out) const override
 
void ResolutionChanged () override
 
const RagePixelFormatDescGetPixelFormatDesc (RagePixelFormat pf) const override
 
bool SupportsThreadedRendering () override
 
void BeginConcurrentRenderingMainThread () override
 
void EndConcurrentRenderingMainThread () override
 
void BeginConcurrentRendering () override
 
void EndConcurrentRendering () override
 
bool BeginFrame () override
 
void EndFrame () override
 
const ActualVideoModeParamsGetActualVideoModeParams () const override
 
void SetBlendMode (BlendMode mode) override
 
bool SupportsTextureFormat (RagePixelFormat pixfmt, bool realtime=false) override
 
bool SupportsPerVertexMatrixScale () override
 
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
 
bool UseOffscreenRenderTarget ()
 
RageSurfaceGetTexture (intptr_t iTexture) override
 
RageTextureLockCreateTextureLock () 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
 
void SetEffectMode (EffectMode effect) override
 
bool IsEffectModeSupported (EffectMode effect) override
 
bool SupportsRenderToTexture () const override
 
bool SupportsFullscreenBorderlessWindow () const override
 
intptr_t CreateRenderTarget (const RenderTargetParam &param, int &iTextureWidthOut, int &iTextureHeightOut) override
 
intptr_t GetRenderTarget () override
 
void SetRenderTarget (intptr_t iHandle, bool bPreserveTexture) 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
 
bool IsD3DInternal () override
 
RageCompiledGeometryCreateCompiledGeometry () override
 
void DeleteCompiledGeometry (RageCompiledGeometry *p) override
 
void SetPolygonMode (PolygonMode pm) override
 
void SetLineWidth (float fWidth) override
 
std::string GetTextureDiagnostics (unsigned id) const override
 
- Public Member Functions inherited from RageDisplay
void SetPresentTime (std::chrono::nanoseconds presentTime)
 
auto SetVideoMode (VideoModeParams &&p, bool &bNeedReloadTextures) -> std::string
 
auto IsD3D () -> bool
 
auto IsWindowed () -> bool
 
auto GetFrameTimingAdjustment (std::chrono::steady_clock::time_point now) -> float
 
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
 
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
 
RagePixelFormat GetImgPixelFormat (RageSurface *&img, bool &FreeImg, int width, int height, bool bPalettedTexture)
 
bool SupportsSurfaceFormat (RagePixelFormat pixfmt)
 
void SendCurrentMatrices ()
 
- Protected Member Functions inherited from RageDisplay
virtual void DrawCircleInternal (const RageSpriteVertex &v, float radius)
 
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 GetOrthoMatrix (float l, float r, float b, float t, float zn, float zf) -> 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

◆ BeginConcurrentRendering()

void RageDisplay_Legacy::BeginConcurrentRendering ( )
overridevirtual

Reimplemented from RageDisplay.

◆ BeginConcurrentRenderingMainThread()

void RageDisplay_Legacy::BeginConcurrentRenderingMainThread ( )
overridevirtual

Reimplemented from RageDisplay.

◆ BeginFrame()

bool RageDisplay_Legacy::BeginFrame ( )
overridevirtual

Reimplemented from RageDisplay.

◆ ClearAllTextures()

void RageDisplay_Legacy::ClearAllTextures ( )
overridevirtual

Implements RageDisplay.

◆ ClearZBuffer()

void RageDisplay_Legacy::ClearZBuffer ( )
overridevirtual

Implements RageDisplay.

◆ CreateCompiledGeometry()

RageCompiledGeometry * RageDisplay_Legacy::CreateCompiledGeometry ( )
overridevirtual

Implements RageDisplay.

◆ CreateRenderTarget()

intptr_t RageDisplay_Legacy::CreateRenderTarget ( const RenderTargetParam param,
int &  iTextureWidthOut,
int &  iTextureHeightOut 
)
overridevirtual

Reimplemented from RageDisplay.

◆ CreateScreenshot()

RageSurface * RageDisplay_Legacy::CreateScreenshot ( )
overrideprotectedvirtual

Implements RageDisplay.

◆ CreateTexture()

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

Implements RageDisplay.

◆ CreateTextureLock()

RageTextureLock * RageDisplay_Legacy::CreateTextureLock ( )
overridevirtual

Reimplemented from RageDisplay.

◆ DeleteCompiledGeometry()

void RageDisplay_Legacy::DeleteCompiledGeometry ( RageCompiledGeometry p)
overridevirtual

Implements RageDisplay.

◆ DeleteTexture()

void RageDisplay_Legacy::DeleteTexture ( intptr_t  iTexHandle)
overridevirtual

Implements RageDisplay.

◆ DrawCompiledGeometryInternal()

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

Implements RageDisplay.

◆ DrawFanInternal()

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

Implements RageDisplay.

◆ DrawLineStripInternal()

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

Reimplemented from RageDisplay.

◆ DrawQuadsInternal()

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

Implements RageDisplay.

◆ DrawQuadStripInternal()

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

Implements RageDisplay.

◆ DrawStripInternal()

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

Implements RageDisplay.

◆ DrawSymmetricQuadStripInternal()

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

Implements RageDisplay.

◆ DrawTrianglesInternal()

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

Implements RageDisplay.

◆ EndConcurrentRendering()

void RageDisplay_Legacy::EndConcurrentRendering ( )
overridevirtual

Reimplemented from RageDisplay.

◆ EndConcurrentRenderingMainThread()

void RageDisplay_Legacy::EndConcurrentRenderingMainThread ( )
overridevirtual

Reimplemented from RageDisplay.

◆ EndFrame()

void RageDisplay_Legacy::EndFrame ( )
overridevirtual

Reimplemented from RageDisplay.

◆ GetActualVideoModeParams()

const ActualVideoModeParams * RageDisplay_Legacy::GetActualVideoModeParams ( ) const
overridevirtual

Implements RageDisplay.

◆ GetApiDescription()

std::string RageDisplay_Legacy::GetApiDescription ( ) const
inlineoverridevirtual

Implements RageDisplay.

◆ GetDisplaySpecs()

void RageDisplay_Legacy::GetDisplaySpecs ( DisplaySpecs &  out) const
overridevirtual

Implements RageDisplay.

◆ GetMaxTextureSize()

int RageDisplay_Legacy::GetMaxTextureSize ( ) const
overridevirtual

Implements RageDisplay.

◆ GetNumTextureUnits()

int RageDisplay_Legacy::GetNumTextureUnits ( )
overridevirtual

Implements RageDisplay.

◆ GetPixelFormatDesc()

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

Implements RageDisplay.

◆ GetRenderTarget()

intptr_t RageDisplay_Legacy::GetRenderTarget ( )
overridevirtual

Reimplemented from RageDisplay.

◆ GetTexture()

RageSurface * RageDisplay_Legacy::GetTexture ( intptr_t  iTexture)
overridevirtual

Reimplemented from RageDisplay.

◆ GetTextureDiagnostics()

std::string RageDisplay_Legacy::GetTextureDiagnostics ( unsigned  id) const
overridevirtual

Reimplemented from RageDisplay.

◆ Init()

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

Implements RageDisplay.

◆ IsD3DInternal()

bool RageDisplay_Legacy::IsD3DInternal ( )
overridevirtual

Reimplemented from RageDisplay.

◆ IsEffectModeSupported()

bool RageDisplay_Legacy::IsEffectModeSupported ( EffectMode  effect)
overridevirtual

Reimplemented from RageDisplay.

◆ IsZTestEnabled()

bool RageDisplay_Legacy::IsZTestEnabled ( ) const
overridevirtual

Implements RageDisplay.

◆ IsZWriteEnabled()

bool RageDisplay_Legacy::IsZWriteEnabled ( ) const
overridevirtual

Implements RageDisplay.

◆ ResolutionChanged()

void RageDisplay_Legacy::ResolutionChanged ( )
overridevirtual

Reimplemented from RageDisplay.

◆ SetAlphaTest()

void RageDisplay_Legacy::SetAlphaTest ( bool  b)
overridevirtual

Implements RageDisplay.

◆ SetBlendMode()

void RageDisplay_Legacy::SetBlendMode ( BlendMode  mode)
overridevirtual

Implements RageDisplay.

◆ SetCelShaded()

void RageDisplay_Legacy::SetCelShaded ( int  stage)
overridevirtual

Implements RageDisplay.

◆ SetCullMode()

void RageDisplay_Legacy::SetCullMode ( CullMode  mode)
overridevirtual

Implements RageDisplay.

◆ SetEffectMode()

void RageDisplay_Legacy::SetEffectMode ( EffectMode  effect)
overridevirtual

Reimplemented from RageDisplay.

◆ SetLightDirectional()

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

Implements RageDisplay.

◆ SetLighting()

void RageDisplay_Legacy::SetLighting ( bool  b)
overridevirtual

Implements RageDisplay.

◆ SetLightOff()

void RageDisplay_Legacy::SetLightOff ( int  index)
overridevirtual

Implements RageDisplay.

◆ SetLineWidth()

void RageDisplay_Legacy::SetLineWidth ( float  fWidth)
overridevirtual

Reimplemented from RageDisplay.

◆ SetMaterial()

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

Implements RageDisplay.

◆ SetPolygonMode()

void RageDisplay_Legacy::SetPolygonMode ( PolygonMode  pm)
overridevirtual

Reimplemented from RageDisplay.

◆ SetRenderTarget()

void RageDisplay_Legacy::SetRenderTarget ( intptr_t  iHandle,
bool  bPreserveTexture 
)
overridevirtual

Reimplemented from RageDisplay.

◆ SetSphereEnvironmentMapping()

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

Implements RageDisplay.

◆ SetTexture()

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

Implements RageDisplay.

◆ SetTextureFiltering()

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

Implements RageDisplay.

◆ SetTextureMode()

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

Implements RageDisplay.

◆ SetTextureWrapping()

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

Implements RageDisplay.

◆ SetZBias()

void RageDisplay_Legacy::SetZBias ( float  f)
overridevirtual

Implements RageDisplay.

◆ SetZTestMode()

void RageDisplay_Legacy::SetZTestMode ( ZTestMode  mode)
overridevirtual

Implements RageDisplay.

◆ SetZWrite()

void RageDisplay_Legacy::SetZWrite ( bool  b)
overridevirtual

Implements RageDisplay.

◆ SupportsFullscreenBorderlessWindow()

bool RageDisplay_Legacy::SupportsFullscreenBorderlessWindow ( ) const
overridevirtual

Reimplemented from RageDisplay.

◆ SupportsPerVertexMatrixScale()

bool RageDisplay_Legacy::SupportsPerVertexMatrixScale ( )
overridevirtual

Implements RageDisplay.

◆ SupportsRenderToTexture()

bool RageDisplay_Legacy::SupportsRenderToTexture ( ) const
overridevirtual

Reimplemented from RageDisplay.

◆ SupportsTextureFormat()

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

Implements RageDisplay.

◆ SupportsThreadedRendering()

bool RageDisplay_Legacy::SupportsThreadedRendering ( )
overridevirtual

Reimplemented from RageDisplay.

◆ TryVideoMode()

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

Implements RageDisplay.

◆ UpdateTexture()

void RageDisplay_Legacy::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: