1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
Matej Jan e87a140ad5 Starting with implementation of graphics device.
git-svn-id: http://xni.googlecode.com/svn/XNI@9 ac433895-eea3-a490-d80a-17149a75e588
2010-07-27 17:42:29 +00:00

42 lines
956 B
Objective-C

//
// GraphicsDevice.h
// XNI
//
// Created by Matej Jan on 27.7.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import <OpenGLES/ES1/glext.h>
#import <OpenGLES/ES2/glext.h>
#import "Retronator.Xni.Framework.classes.h"
#import "Retronator.Xni.Framework.Graphics.classes.h"
@interface GraphicsDevice : NSObject {
Game *game;
EAGLContext *context;
// The pixel dimensions of the CAEAGLLayer
GLint backingWidth;
GLint backingHeight;
// The OpenGL names for the buffers used to render to this view
GLuint defaultFramebuffer, colorRenderbuffer, depthRenderbuffer;
}
- (id) initWithGame:(Game*) theGame;
// Presentation
- (void) reset;
- (void) present;
// Render buffers
- (void) clearWithColor:(Color*)color;
- (void) clearWithOptions:(ClearOptions)options color:(Color*)color depth:(float)depth stencil:(int)stencil;
- (EAGLContext*) createContext;
@end