| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /descent3/main/2dlib/hardsurf.cpp $ |
| 21 | * $Revision: 8 $ |
| 22 | * $Date: 6/12/97 6:28p $ |
| 23 | * $Author: Samir $ |
| 24 | * |
| 25 | * hardware surface class |
| 26 | * |
| 27 | * $Log: /descent3/main/2dlib/hardsurf.cpp $ |
| 28 | * |
| 29 | * 8 6/12/97 6:28p Samir |
| 30 | * DDGR v2.0 Changes in 2d system implemeted. |
| 31 | * |
| 32 | * 7 1/30/97 6:01p Samir |
| 33 | * The partition of memory and os surfaces as well as the change in |
| 34 | * ddgr_surface structure and all related changes. |
| 35 | * |
| 36 | * $NoKeywords: $ |
| 37 | */ |
| 38 | |
| 39 | #include "gr.h"cxx . . $ `<file>/2dlib/gr.h`/ |
| 40 | |
| 41 | // ---------------------------------------------------------------------------- |
| 42 | // constructor and destructor |
| 43 | // ---------------------------------------------------------------------------- |
| 44 | |
| 45 | grHardwareSurfacecxx . . $ grHardwareSurface#::grHardwareSurfacecxx . . $ grHardwareSurface#grHardwareSurface(49f6e7a06ebc5aa8).() : grSurfacecxx . . $ grSurface#grSurface(49f6e7a06ebc5aa8).() {} |
| 46 | |
| 47 | grHardwareSurfacecxx . . $ grHardwareSurface#::grHardwareSurfacecxx . . $ grHardwareSurface#grHardwareSurface(f0b9f08e753626c2).(int w, int h, int bpp, unsigned flags, const char *name) |
| 48 | : grSurfacecxx . . $ grSurface#grSurface(589a245ae52835fb).(w, h, bpp, SURFTYPE_GENERICcxx . . $ SURFTYPE_GENERIC., flags, name) {} |
| 49 | |
| 50 | grHardwareSurfacecxx . . $ grHardwareSurface#::~cxx . . $ grHardwareSurface#`~grHardwareSurface`(ced63f7c635d850d).grHardwareSurfacecxx . . $ grHardwareSurface#() {} |
| 51 | |
| 52 | // ---------------------------------------------------------------------------- |
| 53 | // initialize a hardware surface with these values |
| 54 | // ---------------------------------------------------------------------------- |
| 55 | |
| 56 | bool grHardwareSurfacecxx . . $ grHardwareSurface#::createcxx . . $ grHardwareSurface#create(f4698b8840d8db11).(int w, int h, int bpp, unsigned flags, const char *name) { |
| 57 | grSurfacecxx . . $ grSurface#::createcxx . . $ grSurface#create(589a245ae52835fb).(w, h, bpp, SURFTYPE_GENERICcxx . . $ SURFTYPE_GENERIC., flags, name); |
| 58 | return true; |
| 59 | } |