mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LCE-Revelations.git
synced 2026-06-08 12:23:27 +00:00
Add dynamic resolution (#203)
This commit is contained in:
@@ -48,9 +48,13 @@ void glLoadIdentity()
|
||||
RenderManager.MatrixSetIdentity();
|
||||
}
|
||||
|
||||
extern UINT g_ScreenWidth;
|
||||
extern UINT g_ScreenHeight;
|
||||
|
||||
void gluPerspective(float fovy, float aspect, float zNear, float zFar)
|
||||
{
|
||||
RenderManager.MatrixPerspective(fovy,aspect,zNear,zFar);
|
||||
float dynamicAspect = (float)g_ScreenWidth / (float)g_ScreenHeight;
|
||||
RenderManager.MatrixPerspective(fovy, dynamicAspect, zNear, zFar);
|
||||
}
|
||||
|
||||
void glOrtho(float left,float right,float bottom,float top,float zNear,float zFar)
|
||||
|
||||
Reference in New Issue
Block a user