And how to use functions OpenGL ES???
And if to write for the personal computer they I work, i.e. light is disconnected, depth ..
glDisable (GL_LIGHTING);
glDisable (GL_DEPTH_TEST);
glDisable (GL_BLEND);
and on a handheld computer it is not compiled at all?
And what in plugin1-0.lib??
And for what it is necessary??
Has tried rasteroid, their examples slowly work on a handheld computer. Has connected them lib, headers in a folder " gles \ ", all the same gives out a mistake that it does not know " glDisable (GL_LIGHTING); "
Here functions OpenGL ES are obviously used and at all of them works.
Here a piece from their example:
Please prompt as to make that functions OpenGL ES worked on a handheld computer.
And by the way the example on rendering 500 triangles works very slowly nearby 5 fps, it can is possible to accelerate ?
And if to write for the personal computer they I work, i.e. light is disconnected, depth ..
glDisable (GL_LIGHTING);
glDisable (GL_DEPTH_TEST);
glDisable (GL_BLEND);
and on a handheld computer it is not compiled at all?
Error 1 error LNK2019: unresolved external symbol __imp_glDisable referenced in function "public: virtual long __cdecl ClassMain::OnNextFrame(class ClassEDisplay *,unsigned long)" (?OnNextFrame@ClassMain@@UAAJPAVClassEDisplay@@K@Z) test2.obj
And what in plugin1-0.lib??
And for what it is necessary??
Has tried rasteroid, their examples slowly work on a handheld computer. Has connected them lib, headers in a folder " gles \ ", all the same gives out a mistake that it does not know " glDisable (GL_LIGHTING); "
Here functions OpenGL ES are obviously used and at all of them works.
Here a piece from their example:
static void renderGLESScene(int width, int height, AppData* context, unsigned int time)
{
/* Time needed for the rotation */
const double effectTime= fmod(time / 1000.0, 360.0);
updateOpenGLESState(width, height);
glClear (GL_COLOR_BUFFER_BIT);
/* Rotate the world matrix and translate it on the z-axis */
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(0.f, 0.f, -30.f);
glRotatef((float)(effectTime*29.77f), 1.0f, 2.0f, 0.0f);
glRotatef((float)(effectTime*22.311f), -0.1f, 0.0f, -5.0f);
/* Set the pointer to the arrays containing the cube vertices, normals
and texture coordinates */
glVertexPointer(3, GL_BYTE, 0, s_cubeVertices);
glNormalPointer(GL_BYTE, 0, s_cubeNormals);
glTexCoordPointer(2, GL_BYTE, 0, s_cubeTexCoords);
/* Draw the cube one face at a time in the same order thay have been defined
in the s_cubeVertices array */
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 4, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 8, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 12, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 16, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 20, 4);
}
Please prompt as to make that functions OpenGL ES worked on a handheld computer.
And by the way the example on rendering 500 triangles works very slowly nearby 5 fps, it can is possible to accelerate ?
- Code:
int i=0;
for (int t=0;t<500;t++)
{
xt[i]=ecd.math->Rand(-2048,2048);
yt[i]=ecd.math->Rand(-2048,2048);
zt[i]=ecd.math->Rand(1048,2048);
xt[i+1]=ecd.math->Rand(-2048,2048);
yt[i+1]=ecd.math->Rand(-2048,2048);
zt[i+1]=zt[i];
xt[i+2]=ecd.math->Rand(-2048,2048);
yt[i+2]=ecd.math->Rand(-2048,2048);
zt[i+2]=zt[i];
treygolnik.SetVertex(0, xt[i], yt[i], zt[i]);
treygolnik.SetVertex(1, xt[i+1], yt[i+1], zt[i+1]);
treygolnik.SetVertex(2, xt[i+2], yt[i+2], zt[i+2]);
display->Render(&treygolnik);
}
Attachments:
test_primer.rar (48 KB)