~unity-team/nux/nux-remove-glew-mx

« back to all changes in this revision

Viewing changes to NuxGraphics/GLWindowManager.cpp

  • Committer: Jay Taoko
  • Date: 2011-05-30 02:54:31 UTC
  • mfrom: (353.1.1 nux)
  • Revision ID: jay.taoko@canonical.com-20110530025431-kpqcnbcq3apsfz92
* Object::Dispose() now does the same thing as Object::UnReference()
* Fixed memory leak in UXTheme::Load2DTextureFile
* Mesh Resource manager
    - Fixed mesh Resource manager pipeline
    - See example ProgObjMeshLoader

* Fixed GLSL Shaders in FontRendering.cpp
    - removed global variable USE_ARB_SHADERS and replaced with GraphicsEngine::UsingGLSLCodePath()

* Removing files IniFile.cpp/.h
* Removing files UIColorTheme.cpp/.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
                                                           bool FullscreenFlag,
103
103
                                                           bool create_rendering_data)
104
104
  {
105
 
    if (GetDisplayDevice () )
 
105
    if(GetGraphicsDisplay())
106
106
    {
107
107
      // A GlWindow already exist for this thread.
108
108
      nuxAssertMsg (0, TEXT ("Only one GLWindow per thread is allowed") );
118
118
#if defined(NUX_OS_WINDOWS)
119
119
  GraphicsDisplay *DisplayAccessController::CreateFromForeignWindow (HWND WindowHandle, HDC WindowDCHandle, HGLRC OpenGLRenderingContext)
120
120
  {
121
 
    if (GetDisplayDevice () )
 
121
    if(GetGraphicsDisplay())
122
122
    {
123
123
      // A GlWindow already exist for this thread.
124
124
      nuxAssertMsg (0, TEXT ("Only one GLWindow per thread is allowed") );
133
133
#elif defined(NUX_OS_LINUX)
134
134
  GraphicsDisplay *DisplayAccessController::CreateFromForeignWindow (Display *X11Display, Window X11Window, GLXContext OpenGLContext)
135
135
  {
136
 
    if (GetDisplayDevice () )
 
136
    if (GetGraphicsDisplay())
137
137
    {
138
138
      // A GlWindow already exist for this thread.
139
139
      nuxAssertMsg (0, TEXT ("Only one GLWindow per thread is allowed") );
150
150
 
151
151
GLEWContext *glewGetContext()
152
152
{
153
 
  return nux::GetDisplayDevice ()->GetGLEWContext();
 
153
  return nux::GetGraphicsDisplay()->GetGLEWContext();
154
154
}
155
155
 
156
156
#if defined(NUX_OS_WINDOWS)
157
157
WGLEWContext *wglewGetContext()
158
158
{
159
 
  return nux::GetDisplayDevice ()->GetWGLEWContext();
 
159
  return nux::GetGraphicsDisplay()->GetWGLEWContext();
160
160
}
161
161
#elif defined(NUX_OS_LINUX)
162
162
GLXEWContext *glxewGetContext()
163
163
{
164
 
  return nux::GetDisplayDevice ()->GetGLXEWContext();
 
164
  return nux::GetGraphicsDisplay()->GetGLXEWContext();
165
165
}
166
166
#endif