mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 04:26:55 -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;
|
D3DCOLOR m_backgroundColor = 0xFF000000;
|
||||||
DWORD m_width;
|
DWORD m_width;
|
||||||
DWORD m_height;
|
DWORD m_height;
|
||||||
D3DVALUE m_zMin;
|
|
||||||
D3DVALUE m_zMax;
|
|
||||||
D3DVALUE m_fov;
|
|
||||||
IDirect3DRMFrame* m_camera = nullptr;
|
IDirect3DRMFrame* m_camera = nullptr;
|
||||||
SDL_GPUDevice* m_device;
|
SDL_GPUDevice* m_device;
|
||||||
SDL_GPUGraphicsPipeline* m_pipeline;
|
SDL_GPUGraphicsPipeline* m_pipeline;
|
||||||
|
@ -340,35 +340,35 @@ D3DRMPROJECTIONTYPE Direct3DRMViewport_SDL3GPUImpl::GetProjection()
|
|||||||
|
|
||||||
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetFront(D3DVALUE z)
|
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetFront(D3DVALUE z)
|
||||||
{
|
{
|
||||||
m_zMin = z;
|
m_front = z;
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetFront()
|
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetFront()
|
||||||
{
|
{
|
||||||
return m_zMin;
|
return m_front;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetBack(D3DVALUE z)
|
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetBack(D3DVALUE z)
|
||||||
{
|
{
|
||||||
m_zMax = z;
|
m_back = z;
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetBack()
|
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetBack()
|
||||||
{
|
{
|
||||||
return m_zMax;
|
return m_back;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetField(D3DVALUE field)
|
HRESULT Direct3DRMViewport_SDL3GPUImpl::SetField(D3DVALUE field)
|
||||||
{
|
{
|
||||||
m_fov = field;
|
m_field = field;
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetField()
|
D3DVALUE Direct3DRMViewport_SDL3GPUImpl::GetField()
|
||||||
{
|
{
|
||||||
return m_fov;
|
return m_field;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD Direct3DRMViewport_SDL3GPUImpl::GetWidth()
|
DWORD Direct3DRMViewport_SDL3GPUImpl::GetWidth()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user