我将我的引擎移植到iOS,我收到了一个错误
'GL_GEOMETRY_SHADER' undefined
Run Code Online (Sandbox Code Playgroud)
我使用的是iOS 8 SDK和OpenGL 3.0; 设备是iPhone 5s.有没有替代方案?或者我如何访问几何着色器的东西?
我正在使用以下代码:
f = fopen( _stringhelper.STR("%s.bmp", filename), "wb" );
if( !f ) {
_core.Error( ERC_ASSET, "ncImageLoader::CreateImage - Couldn't create %s image.\n", filename );
return false;
}
int w = width;
int h = height;
int i;
int filesize = 54 + 3 * w * h;
byte bmpfileheader[14] = {
'B', 'M',
0, 0, 0, 0,
0, 0,
0, 0,
54, 0, 0, 0 };
byte bmpinfoheader[40] = { 40, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0, …Run Code Online (Sandbox Code Playgroud) 移植我的游戏新的OpenGL版本(3.2以上版本)后,我注意到,glLoadMatrix()和glMultMatrix()被拆除.他们有替代品吗?我不想使用任何库,因为我有自己的矩阵堆栈.