Click here to Skip to main content
15,885,216 members
Articles / Desktop Programming / MFC

Writing a Platform and GUI Toolkit Independent OpenGL Class

Rate me:
Please Sign up or sign in to vote.
4.92/5 (33 votes)
1 Nov 2010CPOL13 min read 96.8K   7.5K   89  
Article showing how to write OS and GUI toolkit portable OpenGL view class
/****************************************************************************
** Resource object code
**
** Created: Sat Oct 23 10:31:41 2010
**      by: The Resource Compiler for Qt version 4.6.3
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <QtCore/qglobal.h>

static const unsigned char qt_resource_data[] = {
  // /home/sharjith/work/progs/opengl/MultiGL/GLViewQtApp/GLViewQtApp.ico
  0x0,0x0,0x1,0x8,
  0x0,
  0x0,0xa,0xae,0x78,0x9c,0xed,0x56,0x4b,0xe,0x82,0x30,0x10,0x7d,0x60,0x63,0xe2,
  0x8a,0x1e,0xa1,0x4b,0x97,0xac,0x5c,0x77,0xd1,0x83,0xb8,0xf4,0x18,0xac,0x3c,0x86,
  0x67,0xe1,0x0,0x26,0x5e,0xc3,0xa5,0x7,0x20,0xa9,0x33,0x2d,0x4,0x28,0xa8,0x9,
  0xb1,0x28,0x9,0xaf,0x6d,0x5e,0xe7,0xf5,0x3,0x74,0xda,0x29,0x40,0x82,0xd,0xf2,
  0x5c,0x82,0x71,0xda,0x2,0x7,0x62,0xa5,0xbc,0x7d,0x4f,0x81,0xb,0x69,0x52,0x7a,
  0x7b,0x9f,0x0,0xe7,0x1d,0x31,0xd5,0x73,0x2a,0x47,0x2a,0x9,0x84,0x6b,0x2b,0x3c,
  0x39,0xc8,0xba,0x58,0x6b,0xb9,0xc5,0x65,0x14,0x85,0x27,0x4e,0x54,0x29,0xcb,0x92,
  0x98,0x15,0xeb,0x32,0x75,0xf6,0xc4,0xc9,0xfa,0x79,0xec,0x8a,0xd9,0xf0,0x40,0xf,
  0xd9,0x3f,0xeb,0xc2,0x68,0xa1,0x61,0x6,0xba,0x31,0x24,0x9a,0x11,0x5d,0x68,0xa3,
  0x5f,0xe8,0x34,0xd9,0xc8,0xfc,0x2c,0xd,0xf5,0x5f,0x7c,0x6f,0x75,0xed,0xe1,0x36,
  0x55,0x5f,0x31,0x15,0x4d,0x1c,0x9a,0x81,0xd9,0xf3,0x4b,0xe2,0xc8,0xeb,0xc1,0xf7,
  0x8c,0xa2,0xa2,0xd1,0xde,0x33,0x48,0xdb,0x43,0xb2,0x94,0x7b,0x26,0x3c,0xdb,0x73,
  0xd8,0xdd,0x18,0x19,0xc6,0xc6,0x30,0x26,0x86,0xb1,0x30,0x8c,0x81,0xdf,0x7e,0xbf,
  0x30,0x46,0x7d,0xb2,0x63,0xfb,0x67,0xc,0x88,0x84,0xb1,0x67,0xf1,0x3e,0xe7,0x7d,
  0xac,0xd0,0xf9,0x9f,0xea,0x8c,0x89,0xbd,0xcf,0x6b,0xff,0x64,0x3,0x16,0xb4,0x2b,
  0x84,0xf6,0x6c,0x74,0x6b,0x7,0xfd,0xaa,0xbe,0xdf,0xde,0xf8,0xb,0x98,0xb2,0xb2,
  0xcd,0xb8,0x27,0x32,0x4b,0xf9,0x39,
  
};

static const unsigned char qt_resource_name[] = {
  // GLViewQtApp
  0x0,0xb,
  0xc,0x50,0xb1,0x90,
  0x0,0x47,
  0x0,0x4c,0x0,0x56,0x0,0x69,0x0,0x65,0x0,0x77,0x0,0x51,0x0,0x74,0x0,0x41,0x0,0x70,0x0,0x70,
    // GLViewQtApp.ico
  0x0,0xf,
  0x1,0x8b,0xee,0xff,
  0x0,0x47,
  0x0,0x4c,0x0,0x56,0x0,0x69,0x0,0x65,0x0,0x77,0x0,0x51,0x0,0x74,0x0,0x41,0x0,0x70,0x0,0x70,0x0,0x2e,0x0,0x69,0x0,0x63,0x0,0x6f,
  
};

static const unsigned char qt_resource_struct[] = {
  // :
  0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,
  // :/GLViewQtApp
  0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x2,
  // :/GLViewQtApp/GLViewQtApp.ico
  0x0,0x0,0x0,0x1c,0x0,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,

};

QT_BEGIN_NAMESPACE

extern Q_CORE_EXPORT bool qRegisterResourceData
    (int, const unsigned char *, const unsigned char *, const unsigned char *);

extern Q_CORE_EXPORT bool qUnregisterResourceData
    (int, const unsigned char *, const unsigned char *, const unsigned char *);

QT_END_NAMESPACE


int QT_MANGLE_NAMESPACE(qInitResources_glviewqtapp)()
{
    QT_PREPEND_NAMESPACE(qRegisterResourceData)
        (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}

Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_glviewqtapp))

int QT_MANGLE_NAMESPACE(qCleanupResources_glviewqtapp)()
{
    QT_PREPEND_NAMESPACE(qUnregisterResourceData)
       (0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
    return 1;
}

Q_DESTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qCleanupResources_glviewqtapp))

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager Mahindra & Mahindra
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

Comments and Discussions