Platform játék
3D-s megjelenítés, véletlenszerű pályagenerálás, jutalmazó játékélmény
global.h fájlreferencia
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
#include <SDL.h>
#include <SDL_ttf.h>
#include <SDL_gfxPrimitives.h>
#include "auxiliary/auxFunctions.h"

Ugrás a fájl forráskódjához.

Adatszerkezetek

struct  vector2D
 
struct  intVector2D
 
struct  vector3D
 
struct  color
 
struct  colors
 
struct  renderObject
 

Makródefiníciók

#define FPS   (int) 50
 

Típusdefiníciók

typedef struct vector2D vector2D
 
typedef struct intVector2D intVector2D
 
typedef struct vector3D vector3D
 /Vektorok> Részletek...
 
typedef struct color color
 
typedef struct colors colors
 /Színek> Részletek...
 
typedef enum block block
 
typedef struct renderObject renderObject
 

Enumerációk

enum  block { air, solid, invisible, treasure }
 

Változók

float g
 Globális változók> Részletek...
 
SDL_Surface * screen
 
TTF_Font * fontSmaller
 
TTF_Font * fontSmall
 
TTF_Font * fontSmallBold
 
TTF_Font * fontLarge
 
SDL_Surface * text
 
unsigned char * keys
 /Globális változók> Részletek...
 

Adatszerkezetek dokumentációja

◆ vector2D

struct vector2D
Adatmezők
float x
float y

◆ intVector2D

struct intVector2D
Adatmezők
int x
int y

◆ vector3D

struct vector3D
Adatmezők
float x
float y
float z

◆ color

struct color
Adatmezők
unsigned char a
unsigned char b
unsigned char g
unsigned char r

◆ colors

struct colors
Adatmezők
color dark
color light
color normal

◆ renderObject

struct renderObject
Adatmezők
colors colors
bool doesExist
vector3D position
vector3D size

Makródefiníciók dokumentációja

◆ FPS

#define FPS   (int) 50

Típusdefiníciók dokumentációja

◆ block

typedef enum block block

◆ color

typedef struct color color

◆ colors

typedef struct colors colors

/Színek>

◆ intVector2D

typedef struct intVector2D intVector2D

◆ renderObject

typedef struct renderObject renderObject

◆ vector2D

typedef struct vector2D vector2D

◆ vector3D

typedef struct vector3D vector3D

/Vektorok>

Színek>

Enumerációk dokumentációja

◆ block

enum block
Enumeráció-értékek
air 
solid 
invisible 
treasure 

Változók dokumentációja

◆ fontLarge

TTF_Font* fontLarge

◆ fontSmall

TTF_Font* fontSmall

◆ fontSmallBold

TTF_Font* fontSmallBold

◆ fontSmaller

TTF_Font* fontSmaller

◆ g

float g

Globális változók>

◆ keys

unsigned char* keys

/Globális változók>

Vektorok>

◆ screen

SDL_Surface* screen

◆ text

SDL_Surface* text