Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7602873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:31:22+00:00 2026-05-30T23:31:22+00:00

I have following commands: // Load the shaders and get a linked program object

  • 0

I have following commands:

    // Load the shaders and get a linked program object
    userData->programObject = esLoadProgram( vShaderStr, fShaderStr );
    ...
    // Generate the vertex data
    userData->numIndices = esGenCube( 1.0, &userData->vertices,NULL, NULL, &userData->indices );

The program is in native C++ for Android 4, using only NativeActivity. So, project has no /src and java classes.

I put the information to NDK OGLES 2.0 about the version running as EGL_OPENGL_ES2_BIT, and Android.mk was also setup to -lGLESv2. In the file is also included:

#include <GLES/gl.h>
#include <GLES/glext.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>

And also AndroidManifest was informed that it runs OGLES 2.0.

When asked to run, the program gives the following message:

'esLoadProgram' was not declared in this scope
'esGenCube' was not declared in this scope

For some reason these commands that belong to OGLES 2 are not visible. Any suggestion why this?

All comments are highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:31:24+00:00Added an answer on May 30, 2026 at 11:31 pm

    esLoadProgram and esGenCube are not a part of OpenGL ES or EGL. They are just a helper functions (probably from http://code.google.com/p/opengles-book-samples/)

    PS. I would not suggest to mix also GLES and GLES2 headers. If you want GL ES 2.0, then include only from <GLES2/...> (not <GLES/...>)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following commands in a README file: ./Setup ... ./Setup ... ./Setup
In my repository, I have created tags using the following commands. git tag v1.0.0
I'm just learning java and following a book. I have a program written via
As far as I understand, the following sequence of commands M-x load-file ENTER ~/.emacs
I'm a newbie following the RailsTutorial.org program and have installed/setup rvm, ruby 1.9.2,rails, curl,
I have the following command which will loop over all the subdirectories in a
I have the following command which deletes files that are one day old and
I have found the following command in AWK useful in Vim :'<,'>!awk '{ print
I have a MySQL innodb database at 1.9GB, showed by following command. SELECT table_schema
I have the following function that deletes the LaTeX command surrounding the current cursor

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.