Skip to content

Commit

Permalink
IPHONE: Move VideoContext definition to iphone_common.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Feb 23, 2012
1 parent e83e31c commit e1edb20
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 18 additions & 0 deletions backends/platform/iphone/iphone_common.h
Expand Up @@ -55,6 +55,24 @@ enum GraphicsModes {
kGraphicsModeNone = 1
};

struct VideoContext {
// Game screen state
int screenWidth, screenHeight;

// Overlay state
int overlayWidth, overlayHeight;

// Mouse cursor state
int mouseX, mouseY;
int mouseHotspotX, mouseHotspotY;
int mouseWidth, mouseHeight;
bool mouseIsVisible;

// Misc state
GraphicsModes graphicsMode;
int shakeOffsetY;
};

// On the ObjC side
void iPhone_setGraphicsMode(GraphicsModes mode);
void iPhone_updateScreen(int mouseX, int mouseY);
Expand Down
18 changes: 0 additions & 18 deletions backends/platform/iphone/iphone_video.h
Expand Up @@ -34,24 +34,6 @@
#include "iphone_keyboard.h"
#include "iphone_common.h"

struct VideoContext {
// Game screen state
int screenWidth, screenHeight;

// Overlay state
int overlayWidth, overlayHeight;

// Mouse cursor state
int mouseX, mouseY;
int mouseHotspotX, mouseHotspotY;
int mouseWidth, mouseHeight;
bool mouseIsVisible;

// Misc state
GraphicsModes graphicsMode;
int shakeOffsetY;
};

@interface iPhoneView : UIView {
NSMutableArray *_events;
SoftKeyboard *_keyboardView;
Expand Down

0 comments on commit e1edb20

Please sign in to comment.