2010-07-27 18:23:25 +00:00
|
|
|
//
|
|
|
|
// GraphicsDeviceManager.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 27.7.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "System.h"
|
|
|
|
|
|
|
|
#import "IGraphicsDeviceManager.h"
|
|
|
|
#import "IGraphicsDeviceService.h"
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
|
|
|
#import "Retronator.Xni.Framework.Graphics.classes.h"
|
|
|
|
|
|
|
|
@interface GraphicsDeviceManager : NSObject <IGraphicsDeviceManager, IGraphicsDeviceService> {
|
|
|
|
GraphicsProfile graphicsProfile;
|
|
|
|
BOOL isFullScreen;
|
|
|
|
BOOL preferMultiSampling;
|
|
|
|
SurfaceFormat preferedSurfaceFormat;
|
|
|
|
int preferedBackBufferWidth;
|
|
|
|
int preferedBackBufferHeight;
|
|
|
|
DepthFormat preferedDepthStencilFormat;
|
|
|
|
DisplayOrientation supportedOrientations;
|
|
|
|
|
|
|
|
Game *game;
|
|
|
|
GraphicsDevice *graphicsDevice;
|
|
|
|
Event *deviceCreated;
|
|
|
|
Event *deviceDisposing;
|
2010-10-19 13:31:39 +00:00
|
|
|
Event *deviceResetting;
|
2010-07-27 18:23:25 +00:00
|
|
|
Event *deviceReset;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithGame:(Game*)theGame;
|
|
|
|
|
|
|
|
@property (nonatomic) GraphicsProfile graphicsProfile;
|
|
|
|
@property (nonatomic) BOOL isFullScreen;
|
|
|
|
@property (nonatomic) BOOL preferMultiSampling;
|
|
|
|
@property (nonatomic) SurfaceFormat preferedSurfaceFormat;
|
|
|
|
@property (nonatomic) int preferedBackBufferWidth;
|
|
|
|
@property (nonatomic) int preferedBackBufferHeight;
|
|
|
|
@property (nonatomic) DepthFormat preferedDepthStencilFormat;
|
|
|
|
@property (nonatomic) DisplayOrientation supportedOrientations;
|
|
|
|
|
|
|
|
- (void) toggleFullscreen;
|
|
|
|
- (void) applyChanges;
|
|
|
|
|
|
|
|
@end
|