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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:59:13+00:00 2026-05-18T23:59:13+00:00

I have adapted lesson six of insantydesign’s android examples ( http://insanitydesign.com/wp/projects/nehe-android-ports/ ) to work

  • 0

I have adapted lesson six of insantydesign’s android examples (http://insanitydesign.com/wp/projects/nehe-android-ports/) to work for a 2d square and the texture is displaying fine but I also have other (non textured) shapes drawn on screen and the texture from the square “spills over” to them.

In my on surface created method I have the line
squaretexture.loadGLTexture(gl, this.context);
which I think may be the problem.

My question is where should I put this line in order to fix my problem?

  • 1 1 Answer
  • 2 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-18T23:59:14+00:00Added an answer on May 18, 2026 at 11:59 pm

    You need to enable texturing when you want to draw textures primitives, and disable texturing when you want primitives without a texture. For example:

    glEnable(GL_TEXTURE_2D);
    drawObjectA();
    glDisable(GL_TEXTURE_2D);
    drawObjectB();
    

    Object A will be textured, but object B won’t.

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

Sidebar

Related Questions

I have an android application which in its main activity, data are adapted from
I have a script on http://joelglovier.com to add a class of active to each
I have taken the org.eclipse.equinox.p2.examples.rcp.prestartupdate project and adapted it for use in my RCP
I have adapted some code from a great article I found about circle drawing
I have a simple java project (adapted from the example here ), which is
I have set adapter to the MultiAutoCompleteTextView in my android application. ArrayAdapter<String> adapter =
Ok found some great code on Stack. Have adapted it slightly. But in essence
ok so i have an array adapted listview (the array adapting is done in
I have created a UIScrollView in my app - adapted from this sample code:
I have a JQuery carousel which I have adapted for my needs. I need

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.