Qt 4.8
Classes | Functions
quikitwindow.mm File Reference
#import <QuartzCore/CAEAGLLayer.h>
#include "quikitwindow.h"
#include "quikitscreen.h"
#include <QtDebug>
#include <QtGui/QApplication>
#include <QtGui/QKeyEvent>
#include <QtGui/QPlatformGLContext>
#include <QtGui/QWindowSystemInterface>

Go to the source code of this file.

Classes

class  EAGLPlatformContext
 

Functions

static GLint depthBits ()
 
static GLint stencilBits ()
 

Function Documentation

◆ depthBits()

static GLint depthBits ( )
static

Definition at line 67 of file quikitwindow.mm.

Referenced by EAGLPlatformContext::EAGLPlatformContext().

68 {
69  // we can choose between GL_DEPTH24_STENCIL8_OES and GL_DEPTH_COMPONENT16
70  return stencilBits() > 0 ? 24 : 16;
71 }
static GLint stencilBits()
Definition: quikitwindow.mm:56

◆ stencilBits()

static GLint stencilBits ( )
static

Definition at line 56 of file quikitwindow.mm.

Referenced by depthBits(), and EAGLPlatformContext::EAGLPlatformContext().

57 {
58  static GLint bits;
59  static bool initialized = false;
60  if (!initialized) {
61  glGetIntegerv(GL_STENCIL_BITS, &bits);
62  initialized = true;
63  }
64  return bits;
65 }
#define GL_STENCIL_BITS
typedef GLint
Definition: glfunctions.h:67