Descent3/2dlib/hardsurf.cpp

56 lines
1.9 KiB
C++
Raw Permalink Normal View History

/*
* Descent 3
* Copyright (C) 2024 Parallax Software
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
--- HISTORICAL COMMENTS FOLLOW ---
2024-04-16 03:43:29 +00:00
* $Logfile: /descent3/main/2dlib/hardsurf.cpp $
* $Revision: 8 $
* $Date: 6/12/97 6:28p $
* $Author: Samir $
*
* hardware surface class
*
* $Log: /descent3/main/2dlib/hardsurf.cpp $
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 8 6/12/97 6:28p Samir
* DDGR v2.0 Changes in 2d system implemeted.
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 7 1/30/97 6:01p Samir
* The partition of memory and os surfaces as well as the change in
* ddgr_surface structure and all related changes.
*
* $NoKeywords: $
*/
#include "gr.h"
// ----------------------------------------------------------------------------
// constructor and destructor
// ----------------------------------------------------------------------------
grHardwareSurface::grHardwareSurface(int w, int h, int bpp, unsigned flags, const char *name)
2024-04-16 18:56:40 +00:00
: grSurface(w, h, bpp, SURFTYPE_GENERIC, flags, name) {}
2024-04-16 03:43:29 +00:00
// ----------------------------------------------------------------------------
// initialize a hardware surface with these values
// ----------------------------------------------------------------------------
2024-04-16 18:56:40 +00:00
bool grHardwareSurface::create(int w, int h, int bpp, unsigned flags, const char *name) {
grSurface::create(w, h, bpp, SURFTYPE_GENERIC, flags, name);
return true;
2024-04-16 03:43:29 +00:00
}