Merge branch 'master' into master
This commit is contained in:
commit
db4efbce74
11 changed files with 113 additions and 81 deletions
|
@ -74,9 +74,8 @@ int main(void)
|
|||
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
UnloadRenderTexture(target);
|
||||
target = LoadRenderTextureDepthTex(GetScreenWidth(), GetScreenHeight());
|
||||
target = LoadRenderTextureDepthTex(GetScreenWidth(), GetScreenHeight());
|
||||
// Draw into our custom render texture (framebuffer)
|
||||
BeginTextureMode(target);
|
||||
ClearBackground(WHITE);
|
||||
|
@ -94,8 +93,7 @@ int main(void)
|
|||
|
||||
// Draw into screen our custom render texture
|
||||
BeginDrawing();
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
DrawTextureRec(target.texture, (Rectangle) { 0, 0, (float)GetScreenWidth(), (float)-GetScreenHeight() }, (Vector2) { 0, 0 }, WHITE);
|
||||
DrawFPS(10, 10);
|
||||
EndDrawing();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue