The example simpleCpu compilation was failing, thanks to

a) Missing include/import in mainApple (compiler failed to
find definition of glGetError() and associated enums)
b) Missing generation of string-fied shader for inclusion
into the source code files.

This patch fixes both issues.

Signed-off-by: Adenilson Cavalcanti <cavalcantii@gmail.com>
This commit is contained in:
Adenilson Cavalcanti 2012-10-23 17:20:08 -02:00
parent 3467673a6b
commit 8e5ce18e48
2 changed files with 4 additions and 1 deletions

View File

@ -101,6 +101,8 @@ if(APPLE)
_add_glut_executable(simpleCpu
mainApple.mm
simpleCpuSubdivision.cpp
${SHADER_FILES}
${INC_FILES}
)
else()
_add_glut_executable(simpleCpu

View File

@ -1,7 +1,8 @@
#import <Cocoa/Cocoa.h>
#import <wchar.h>
#import <iostream>
#import <OpenGL/OpenGL.h>
#import <OpenGL/glu.h>
//
// Hooks back into the example code
//