OGRE
1.7
Object-Oriented Graphics Rendering Engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
OgreEAGLESContext.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OGRE
4
(Object-oriented Graphics Rendering Engine)
5
For the latest info, see http://www.ogre3d.org/
6
7
Copyright (c) 2000-2011 Torus Knot Software Ltd
8
9
Permission is hereby granted, free of charge, to any person obtaining a copy
10
of this software and associated documentation files (the "Software"), to deal
11
in the Software without restriction, including without limitation the rights
12
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
copies of the Software, and to permit persons to whom the Software is
14
furnished to do so, subject to the following conditions:
15
16
The above copyright notice and this permission notice shall be included in
17
all copies or substantial portions of the Software.
18
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
THE SOFTWARE.
26
-----------------------------------------------------------------------------
27
*/
28
29
#ifndef __EAGLESContext_H__
30
#define __EAGLESContext_H__
31
32
#include "
OgreGLESContext.h
"
33
34
#ifdef __OBJC__
35
# import <QuartzCore/CAEAGLLayer.h>
36
#endif
37
38
namespace
Ogre {
39
40
class
_OgrePrivate
EAGLESContext
:
public
GLESContext
41
{
42
protected
:
43
#ifdef __OBJC__
44
CAEAGLLayer *mDrawable;
45
EAGLContext *mContext;
46
#endif
47
48
public
:
49
#ifdef __OBJC__
50
EAGLESContext
(CAEAGLLayer *drawable);
51
CAEAGLLayer * getDrawable()
const
;
52
EAGLContext * getContext()
const
;
53
#endif
54
virtual
~
EAGLESContext
();
55
56
virtual
void
setCurrent();
57
virtual
void
endCurrent();
58
virtual
GLESContext
* clone()
const
;
59
60
bool
createFramebuffer();
61
void
destroyFramebuffer();
62
63
/* The pixel dimensions of the backbuffer */
64
GLint
mBackingWidth
;
65
GLint
mBackingHeight
;
66
67
/* OpenGL names for the renderbuffer and framebuffers used to render to this view */
68
GLuint
mViewRenderbuffer
;
69
GLuint
mViewFramebuffer
;
70
71
/* OpenGL name for the depth buffer that is attached to viewFramebuffer, if it exists (0 if it does not exist) */
72
GLuint
mDepthRenderbuffer
;
73
74
bool
mIsMultiSampleSupported
;
75
GLsizei
mNumSamples
;
76
GLuint
mFSAAFramebuffer
;
77
GLuint
mFSAARenderbuffer
;
78
};
79
}
80
81
#endif
Ogre::EAGLESContext::mFSAARenderbuffer
GLuint mFSAARenderbuffer
Definition:
OgreEAGLESContext.h:77
Ogre::EAGLESContext::mViewRenderbuffer
GLuint mViewRenderbuffer
Definition:
OgreEAGLESContext.h:68
Ogre::EAGLESContext::mNumSamples
GLsizei mNumSamples
Definition:
OgreEAGLESContext.h:75
Ogre::EAGLESContext::mIsMultiSampleSupported
bool mIsMultiSampleSupported
Definition:
OgreEAGLESContext.h:74
Ogre::EAGLESContext::mFSAAFramebuffer
GLuint mFSAAFramebuffer
Definition:
OgreEAGLESContext.h:76
Ogre::EAGLESContext::mBackingHeight
GLint mBackingHeight
Definition:
OgreEAGLESContext.h:65
Ogre::EAGLESContext
Definition:
OgreEAGLESContext.h:40
Ogre::EAGLESContext::mDepthRenderbuffer
GLuint mDepthRenderbuffer
Definition:
OgreEAGLESContext.h:72
Ogre::EAGLESContext::mViewFramebuffer
GLuint mViewFramebuffer
Definition:
OgreEAGLESContext.h:69
Ogre::GLESContext
Class that encapsulates an GL context.
Definition:
OgreGLESContext.h:42
_OgrePrivate
#define _OgrePrivate
Definition:
OgrePlatform.h:204
Ogre::EAGLESContext::mBackingWidth
GLint mBackingWidth
Definition:
OgreEAGLESContext.h:64
OgreGLESContext.h
RenderSystems
GLES
include
EAGL
OgreEAGLESContext.h
Generated on Fri Jun 20 2014 01:03:14 for OGRE by
1.8.7