mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 19:41:04 -04:00
Set viewport frustrum again (#171)
This commit is contained in:
parent
b24271a51b
commit
0fe44b28b8
@ -50,9 +50,6 @@ private:
|
||||
D3DCOLOR m_backgroundColor = 0xFF000000;
|
||||
DWORD m_width;
|
||||
DWORD m_height;
|
||||
D3DVALUE m_zMin;
|
||||
D3DVALUE m_zMax;
|
||||
D3DVALUE m_fov;
|
||||
IDirect3DRMFrame* m_camera = nullptr;
|
||||
SDL_GPUDevice* m_device;
|
||||
SDL_GPUGraphicsPipeline* m_pipeline;
|
||||
|
@ -340,35 +340,35 @@ D3DRMPROJECTIONTYPE Direct3DRMViewport_SDL3GPUImpl::GetProjection()
|
||||
|
||||
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetFront(D3DVALUE z)
|
||||
{
|
||||
m_zMin = z;
|
||||
m_front = z;
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetFront()
|
||||
{
|
||||
return m_zMin;
|
||||
return m_front;
|
||||
}
|
||||
|
||||
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetBack(D3DVALUE z)
|
||||
{
|
||||
m_zMax = z;
|
||||
m_back = z;
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetBack()
|
||||
{
|
||||
return m_zMax;
|
||||
return m_back;
|
||||
}
|
||||
|
||||
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetField(D3DVALUE field)
|
||||
{
|
||||
m_fov = field;
|
||||
m_field = field;
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetField()
|
||||
{
|
||||
return m_fov;
|
||||
return m_field;
|
||||
}
|
||||
|
||||
DWORD Direct3DRMViewport_SDL3GPUImpl::GetWidth()
|
||||
|
Loading…
x
Reference in New Issue
Block a user