mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-27 16:12:13 +03:00
feat(gx): sync projection and view xforms in d3d backend
This commit is contained in:
1 parent
c0e623d02b
commit
5174970b24
1 file changed
+13
-1
@@ -1704,7 +1704,19 @@ void CGxDeviceD3d::IStateSyncVertexPtrs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CGxDeviceD3d::IStateSyncXforms() {
|
void CGxDeviceD3d::IStateSyncXforms() {
|
||||||
// TODO
|
if (this->m_xforms[GxXform_Projection].m_dirty) {
|
||||||
|
this->m_d3dDevice->SetTransform(D3DTS_PROJECTION, reinterpret_cast<D3DMATRIX*>(&this->m_projNative));
|
||||||
|
this->m_xforms[GxXform_Projection].m_dirty = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->m_xforms[GxXform_View].m_dirty) {
|
||||||
|
this->m_d3dDevice->SetTransform(D3DTS_VIEW, reinterpret_cast<const D3DMATRIX*>(&this->m_xforms[GxXform_View].TopConst()));
|
||||||
|
this->m_xforms[GxXform_View].m_dirty = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO world
|
||||||
|
|
||||||
|
// TODO tex
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGxDeviceD3d::ITexCreate(CGxTex* texId) {
|
void CGxDeviceD3d::ITexCreate(CGxTex* texId) {
|
||||||
|
|||||||
Reference in new issue
Block a user