Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

Resource.cpp File Reference

#include <Resource.h>
#include <SDL.h>
#include <SDL_image.h>

Include dependency graph for Resource.cpp:

Include dependency graph

Go to the source code of this file.

Functions

bool loadResources ()

Variables

char * fnames []
char * fontfiles []
SDL_Surface * Screen
Font * SystemFont
SDL_Surface * bRes [NUM_RESOURCES]


Function Documentation

bool loadResources  
 

Definition at line 59 of file Resource.cpp.

References bRes, fnames, fontfiles, MINI_FONT, NUM_FONTS, NUM_RESOURCES, PROGRESS_FONT, Screen, and SystemFont.

Referenced by main().


Variable Documentation

SDL_Surface* bRes[NUM_RESOURCES]
 

Definition at line 56 of file Resource.cpp.

Referenced by loadResources().

char* fnames[]
 

Initial value:

{
        "../images/backgrounds/back.png",
        "../images/gui/buttons/button-up.png",
        "../images/gui/buttons/button-lit.png",
        "../images/gui/buttons/button-down.png",
        "../images/gui/buttons/button-up-left.png",
        "../images/gui/buttons/button-up-right.png",
        "../images/gui/buttons/button-up-middle.png",
        "../images/gui/buttons/button-lit-left.png",
        "../images/gui/buttons/button-lit-right.png",
        "../images/gui/buttons/button-lit-middle.png",
        "../images/gui/buttons/button-down-left.png",
        "../images/gui/buttons/button-down-right.png",
        "../images/gui/buttons/button-down-middle.png",
        "../images/gui/window/template-top-left.png",
        "../images/gui/window/template-top-right.png",
        "../images/gui/window/template-top-caption.png",
        "../images/gui/window/template-bottom-left.png",
        "../images/gui/window/template-bottom-right.png",
        "../images/gui/window/template-bottom-middle.png",
        "../images/gui/window/template-middle-left-middle.png",
        "../images/gui/window/template-middle-left-top.png",
        "../images/gui/window/template-middle-left-bottom.png",
        "../images/gui/window/template-middle-right-middle.png",
        "../images/gui/window/template-middle-right-top.png",
        "../images/gui/window/template-middle-right-bottom.png",
        "../images/backgrounds/splash.png",
}

Definition at line 10 of file Resource.cpp.

Referenced by loadResources().

char* fontfiles[]
 

Initial value:

 {
        "../fonts/BlackWolf.ttf",
        "../fonts/BlackWolf.ttf",
        "../fonts/BlackWolf.ttf",
        "../fonts/BlackWolf.ttf",
        "../fonts/BlackWolf.ttf",
        "../fonts/BOOMBOX.ttf",
        "../fonts/ALIEE___.ttf",
        "../fonts/ALIEE___.ttf",
        "../fonts/ALIEEB__.ttf",
        "../fonts/ALIEEI__.ttf",
        "../fonts/ALIEEBI_.ttf",
        
}

Definition at line 39 of file Resource.cpp.

Referenced by loadResources().

SDL_Surface* Screen
 

Definition at line 54 of file Resource.cpp.

Referenced by loadResources().

Font* SystemFont
 

Definition at line 55 of file Resource.cpp.

Referenced by clawsoft.TextButton.draw(), loadResources(), and clawsoft.TextButton.map().

Powered by:

SourceForge Logo