mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-28 09:51:16 +00:00
update gxm renderer
This commit is contained in:
parent
24a2e18c9c
commit
c71e94b8d3
@ -159,7 +159,7 @@ MxResult LegoInputManager::GetJoystick()
|
||||
}
|
||||
m_joyids = SDL_GetGamepads(&numJoysticks);
|
||||
|
||||
if (m_useJoystick != FALSE && m_numJoysticks != 0) {
|
||||
if (m_useJoystick != FALSE) {
|
||||
MxS32 joyid = m_joystickIndex;
|
||||
if (joyid >= 0) {
|
||||
m_joystick = SDL_OpenGamepad(m_joyids[joyid]);
|
||||
|
||||
@ -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 surface = static_cast<DirectDrawSurfaceImpl*>(texture->m_surface);
|
||||
|
||||
@ -86,7 +86,7 @@ class GXMRenderer : public Direct3DRMRenderer {
|
||||
void PushLights(const SceneLight* lightsArray, size_t count) override;
|
||||
void SetProjection(const D3DRMMATRIX4D& projection, D3DVALUE front, D3DVALUE back) 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;
|
||||
HRESULT BeginFrame() override;
|
||||
void EnableTransparency() override;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user