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 6108963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:21:08+00:00 2026-05-23T14:21:08+00:00

I am doing coding in ubuntu 10.10 with kronos headers but i am stuck

  • 0

I am doing coding in ubuntu 10.10 with kronos headers but i am stuck because whenever i try to compile the code they there is an error comes :

glmapbuffer undeclared
glunmapbuffer undeclared

i have gl2.h and gl2ext.h in my header file .Can anyone tell me

If I am doing like this what else can i do :

    glBindBuffer(GL_ARRAY_BUFFER, uiVBO[surfnum]);
    glBufferData(GL_ARRAY_BUFFER, 9*sizeof(GLfloat)*triNum[surfnum], NULL, GL_STATIC_DRAW);
    GLfloat *pData = glMapBufferOES (GL_ARRAY_BUFFER, GL_WRITE_ONLY_OES);
    for(i=0; i<triNum[surfnum]; ++i,pData+=9)
            {
                 memcpy(pData, triArray[surfnum][i].pt1, 3*sizeof(GLfloat));
                 memcpy(pData+3, triArray[surfnum][i].pt2, 3*sizeof(GLfloat));
                 memcpy(pData+6, triArray[surfnum][i].pt3, 3*sizeof(GLfloat));
            }
    glUnmapBufferOES (GL_ARRAY_BUFFER);//clean up behind us
  • 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-23T14:21:08+00:00Added an answer on May 23, 2026 at 2:21 pm

    The suffix …OES indicates that those functions are not part of the core OpenGL-ES specification, but are considered optional functionality, very much like …ARB extensions mentioned in standard OpenGL specifications. Like with standard OpenGL the method to access the extension, if available, depends on the target plattform.

    However in your case, since you try to compile it on a standard desktop Linux I suggest the following workaround, if you insist on mapping the buffer.

    /* before using glMapBufferOES */
    #ifdef SYSTEM_HAS_STD_OPENGL
    #define glMapBufferOES glMapBuffer
    #define glUnmapBufferOES glUnmapBuffer
    #endif
    

    Of course you could just fill a proxy array with the data, supply that to glBufferData and not map at all:

    glBindBuffer(GL_ARRAY_BUFFER, uiVBO[surfnum]);
    size_t buf_size = 9*sizeof(GLfloat)*triNum[surfnum];
    GLfloat * const pData = malloc(buf_size);
    for(i=0; i<triNum[surfnum]; ++i) {
        memcpy(pData+i*9,   triArray[surfnum][i].pt1, 3*sizeof(GLfloat));
        memcpy(pData+i*9+3, triArray[surfnum][i].pt2, 3*sizeof(GLfloat));
        memcpy(pData+i*9+6, triArray[surfnum][i].pt3, 3*sizeof(GLfloat));
    }
    glBufferData(GL_ARRAY_BUFFER, buf_size, pData, GL_STATIC_DRAW);
    free(pData);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm planning on doing more coding from home but in order to do so,
some code snippets. The java coding doing the jaxb unmarshaling. pretty straightforward, copied out
I am doing coding from beggining blackberry by Anthony Rizk. I am stuck with
I've recently started doing some coding in Python again and I've encountered an error
I'm new in C# but not new to coding --being doing it for almost
I am doing coding to solve a problem like this. There are about 50
I am doing coding of ASP.NET chart control and chart code is as per
I'm doing research on coding requirements for medical applications but I can't find anything
I'm doing some Python coding in a clients code base and I stumbled on
I used program C, and now im doing some web coding, is there a

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.