Debian Codegraph @

src/surface.cpp

raw symbols SCIP
1 /***************************************************************************
2 surface.cpp - description
3 -------------------
4 begin : Sat Oct 14 2000
5 copyright : (C) 2000 by Waldemar Baraldi
6 email : [email protected]
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18 #include "surface.h"cxx . . $ `<file>/src/surface.h`/
19 #include <stdio.h>
20
21 Surfacecxx . . $ Surface#::Surfacecxx . . $ Surface#Surface(49f6e7a06ebc5aa8).(){
22 surfacecxx . . $ Surface#surface.=NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!;
23 }
24
25 Surfacecxx . . $ Surface#::Surfacecxx . . $ Surface#Surface(3e454b8ccf442868).(int width, int height){
26 SDL_Rect rect;
27 SDL_Surface * aux_surface;
28
29 rect.x=0;
30 rect.y=0;
31 rect.w=width;
32 rect.h=height;
33
34 aux_surface=SDL_CreateRGBSurface(SDL_HWSURFACEcxx . . $ `<external>/3508485105195885937/SDL_video.h:230:9`!|SDL_SRCALPHAcxx . . $ `<external>/3508485105195885937/SDL_video.h:247:9`!, width, height,
35 32, 0xff, 0x00ff,0x0000ff,0x000000ff);
36 surfacecxx . . $ Surface#surface.=SDL_DisplayFormatAlpha(aux_surface);
37 SDL_FreeSurface(aux_surface);
38 }
39
40 Surfacecxx . . $ Surface#::~cxx . . $ Surface#`~Surface`(ced63f7c635d850d).Surfacecxx . . $ Surface#(){
41 if (surfacecxx . . $ Surface#surface.) SDL_FreeSurface(surfacecxx . . $ Surface#surface.);
42 }
43
44 int Surfacecxx . . $ Surface#::widthcxx . . $ Surface#width(b126dc7c1de90089).(){
45 if (surfacecxx . . $ Surface#surface.) return surfacecxx . . $ Surface#surface.->w;
46 return 0;
47 }
48
49 int Surfacecxx . . $ Surface#::heightcxx . . $ Surface#height(b126dc7c1de90089).(){
50 if (surfacecxx . . $ Surface#surface.) return surfacecxx . . $ Surface#surface.->h;
51 return 0;
52 }
53