update gxm renderer

This commit is contained in:
olebeck 2025-07-06 02:02:45 +02:00
parent 24a2e18c9c
commit c71e94b8d3
3 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ MxResult LegoInputManager::GetJoystick()
} }
m_joyids = SDL_GetGamepads(&numJoysticks); m_joyids = SDL_GetGamepads(&numJoysticks);
if (m_useJoystick != FALSE && m_numJoysticks != 0) { if (m_useJoystick != FALSE) {
MxS32 joyid = m_joystickIndex; MxS32 joyid = m_joystickIndex;
if (joyid >= 0) { if (joyid >= 0) {
m_joystick = SDL_OpenGamepad(m_joyids[joyid]); m_joystick = SDL_OpenGamepad(m_joyids[joyid]);

View File

@ -993,7 +993,7 @@ void copySurfaceToGxm(DirectDrawSurfaceImpl* surface, uint8_t* textureData, size
} }
} }
Uint32 GXMRenderer::GetTextureId(IDirect3DRMTexture* iTexture, bool isUi) Uint32 GXMRenderer::GetTextureId(IDirect3DRMTexture* iTexture, bool isUi, float scaleX, float scaleY)
{ {
auto texture = static_cast<Direct3DRMTextureImpl*>(iTexture); auto texture = static_cast<Direct3DRMTextureImpl*>(iTexture);
auto surface = static_cast<DirectDrawSurfaceImpl*>(texture->m_surface); auto surface = static_cast<DirectDrawSurfaceImpl*>(texture->m_surface);

View File

@ -86,7 +86,7 @@ class GXMRenderer : public Direct3DRMRenderer {
void PushLights(const SceneLight* lightsArray, size_t count) override; void PushLights(const SceneLight* lightsArray, size_t count) override;
void SetProjection(const D3DRMMATRIX4D& projection, D3DVALUE front, D3DVALUE back) override; void SetProjection(const D3DRMMATRIX4D& projection, D3DVALUE front, D3DVALUE back) override;
void SetFrustumPlanes(const Plane* frustumPlanes) override; void SetFrustumPlanes(const Plane* frustumPlanes) override;
Uint32 GetTextureId(IDirect3DRMTexture* texture, bool isUi) override; Uint32 GetTextureId(IDirect3DRMTexture* texture, bool isUi, float scaleX, float scaleY) override;
Uint32 GetMeshId(IDirect3DRMMesh* mesh, const MeshGroup* meshGroup) override; Uint32 GetMeshId(IDirect3DRMMesh* mesh, const MeshGroup* meshGroup) override;
HRESULT BeginFrame() override; HRESULT BeginFrame() override;
void EnableTransparency() override; void EnableTransparency() override;