mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-07 03:48:15 +00:00
Update rlgl.h
This commit is contained in:
15
src/rlgl.h
15
src/rlgl.h
@@ -927,13 +927,10 @@ typedef struct rlglData {
|
|||||||
int glBlendDstFactor; // Blending destination factor
|
int glBlendDstFactor; // Blending destination factor
|
||||||
int glBlendEquation; // Blending equation
|
int glBlendEquation; // Blending equation
|
||||||
|
|
||||||
int framebufferWidth; // Default framebuffer width
|
int viewportX; // Current viewport offset x
|
||||||
int framebufferHeight; // Default framebuffer height
|
int viewportY; // Current viewport offset y
|
||||||
|
int framebufferWidth; // Current viewport width (framebuffer)
|
||||||
int viewportX; // Current opengl viewport offset x
|
int framebufferHeight; // Current viewport height (framebuffer)
|
||||||
int viewportY; // Current opengl viewport offset y
|
|
||||||
int viewportWidth; // Current opengl viewport width
|
|
||||||
int viewportHeight; // Current opengl viewport height
|
|
||||||
|
|
||||||
} State; // Renderer state
|
} State; // Renderer state
|
||||||
struct {
|
struct {
|
||||||
@@ -1239,8 +1236,8 @@ void rlViewport(int x, int y, int width, int height)
|
|||||||
{
|
{
|
||||||
RLGL.State.viewportX = x;
|
RLGL.State.viewportX = x;
|
||||||
RLGL.State.viewportY = y;
|
RLGL.State.viewportY = y;
|
||||||
RLGL.State.viewportWidth = width;
|
RLGL.State.framebufferWidth = width;
|
||||||
RLGL.State.viewportHeight = height;
|
RLGL.State.framebufferHeight = height;
|
||||||
|
|
||||||
glViewport(x, y, width, height);
|
glViewport(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user