File diff r5940:476169f4235d → r5941:09e955ca9251
src/gfx.h
Show inline comments
 
/* $Id$ */
 

	
 
#ifndef GFX_H
 
#define GFX_H
 

	
 
/* !!! Note that the first part of this file if enclosed in extern "C" due to cocoa/obj-C !!! */
 

	
 
#ifdef __cplusplus
 
extern "C" {
 
#endif /* __cplusplus */
 

	
 
enum WindowKeyCodes {
 
	WKC_SHIFT = 0x8000,
 
	WKC_CTRL  = 0x4000,
 
	WKC_ALT   = 0x2000,
 
	WKC_META  = 0x1000,
 
@@ -172,16 +167,12 @@ void DrawTextMessage(void);
 
void DrawMouseCursor(void);
 
void ScreenSizeChanged(void);
 
void HandleExitGameRequest(void);
 
void GameSizeChanged(void);
 
void UndrawMouseCursor(void);
 

	
 
#ifdef __cplusplus
 
}; //extern "C"
 
/* Following part is only for C++ */
 

	
 
#include "helpers.hpp"
 

	
 
typedef enum FontSizes {
 
	FS_NORMAL,
 
	FS_SMALL,
 
	FS_LARGE,
 
@@ -242,13 +233,13 @@ void SetAnimatedMouseCursor(const Cursor
 
void CursorTick(void);
 
void DrawMouseCursor(void);
 
void ScreenSizeChanged(void);
 
void UndrawMouseCursor(void);
 
bool ChangeResInGame(int w, int h);
 
void SortResolutions(int count);
 
extern "C" void ToggleFullScreen(bool fs);
 
void ToggleFullScreen(bool fs);
 

	
 
/* gfx.c */
 
#define ASCII_LETTERSTART 32
 
extern FontSize _cur_fontsize;
 

	
 
byte GetCharacterWidth(FontSize size, uint32 key);
 
@@ -298,9 +289,7 @@ typedef enum StringColorFlags {
 

	
 

	
 
#ifdef _DEBUG
 
extern bool _dbg_screen_rect;
 
#endif
 

	
 
#endif /* __cplusplus */
 

	
 
#endif /* GFX_H */