mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge branch 'development' of https://github.com/GarageGames/Torque3D into PBR_ProbeArrayGLWIP
# Conflicts: # Engine/source/gfx/D3D11/gfxD3D11Device.cpp # Engine/source/lighting/lightManager.cpp # Templates/Full/game/levels/Empty Room.mis # Templates/Full/game/levels/Empty Terrain.mis
This commit is contained in:
commit
dd1470202d
218 changed files with 7060 additions and 2938 deletions
|
|
@ -233,7 +233,7 @@ DXGI_SWAP_CHAIN_DESC GFXD3D11Device::setupPresentParams(const GFXVideoMode &mode
|
|||
|
||||
if (mode.fullScreen)
|
||||
{
|
||||
d3dpp.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
|
||||
d3dpp.BufferDesc.Scaling = DXGI_MODE_SCALING_CENTERED;
|
||||
d3dpp.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED;
|
||||
d3dpp.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH;
|
||||
}
|
||||
|
|
@ -1893,4 +1893,4 @@ void GFXD3D11Device::setDebugMarker(ColorI color, const char *name)
|
|||
|
||||
D3DPERF_SetMarker(D3DCOLOR_ARGB(color.alpha, color.red, color.green, color.blue),
|
||||
(LPCWSTR)&eventName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,11 +77,11 @@ _STRING_VALUE_LOOKUP_FXN(GFXStringBlendOp);
|
|||
|
||||
#define INIT_LOOKUPTABLE( tablearray, enumprefix, type ) \
|
||||
for( S32 i = enumprefix##_FIRST; i < enumprefix##_COUNT; i++ ) \
|
||||
tablearray[i] = (type)GFX_UNINIT_VAL;
|
||||
tablearray[i] = (type)(uintptr_t)GFX_UNINIT_VAL;
|
||||
#define INIT_LOOKUPTABLE_EX( tablearray, enumprefix, type, typeTable ) \
|
||||
for( S32 i = enumprefix##_FIRST; i < enumprefix##_COUNT; i++ ) \
|
||||
{\
|
||||
tablearray[i] = (type)GFX_UNINIT_VAL;\
|
||||
tablearray[i] = (type)(uintptr_t)GFX_UNINIT_VAL;\
|
||||
typeTable[i] = &defaultStringValueLookup;\
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ void GFXGLPrimitiveBuffer::finish()
|
|||
GLvoid* GFXGLPrimitiveBuffer::getBuffer()
|
||||
{
|
||||
// NULL specifies no offset into the hardware buffer
|
||||
return (GLvoid*)mBufferOffset;
|
||||
return (GLvoid*)(uintptr_t)mBufferOffset;
|
||||
}
|
||||
|
||||
void GFXGLPrimitiveBuffer::zombify()
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -141,7 +141,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -152,7 +152,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -163,7 +163,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -174,7 +174,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -185,7 +185,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = true;
|
||||
glElement.type = GL_UNSIGNED_BYTE;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -196,7 +196,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -207,7 +207,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_UNSIGNED_BYTE;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
}
|
||||
|
|
@ -221,7 +221,7 @@ void GFXGLVertexDecl::_initVerticesFormat(U32 stream)
|
|||
glElement.normalized = false;
|
||||
glElement.type = GL_FLOAT;
|
||||
glElement.stride = vertexSize;
|
||||
glElement.pointerFirst = (void*)buffer;
|
||||
glElement.pointerFirst = (void*)(uintptr_t)buffer;
|
||||
|
||||
buffer += element.getSizeInBytes();
|
||||
++texCoordIndex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue