From 4b4adf45b0326ebd902909c07ea78a397fb01300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Sun, 12 Sep 2021 13:15:32 +0700 Subject: Reduce number of glViewport calls --- src/GameDraw.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/GameDraw.cpp') diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp index 9b7c1c5..9848232 100644 --- a/src/GameDraw.cpp +++ b/src/GameDraw.cpp @@ -1,3 +1,24 @@ +// Game drawing +// Copyright (C) 2002 David Rosen +// Copyright (C) 2003 Ryan C. Gordon +// Copyright (C) 2003 Steven Fuller +// Copyright (C) 2021 Nguyễn Gia Phong +// +// This file is part of Black Shades. +// +// Black Shades is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Black Shades is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Black Shades. If not, see . + #include "Game.h" extern int thirdperson; @@ -37,7 +58,6 @@ int Game::DrawGLScene(void) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //"Black Shades" - ReSizeGLScene(90.0f, 0.1f); glDisable(GL_TEXTURE_2D); glDisable(GL_DEPTH_TEST); // Disables Depth Testing glDisable(GL_CULL_FACE); -- cgit v1.2.3