mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
50 lines
1.4 KiB
Objective-C
50 lines
1.4 KiB
Objective-C
//
|
|
// 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;
|
|
Event *deviceResetting;
|
|
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
|