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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:32:40+00:00 2026-06-15T04:32:40+00:00

I am having difficulty understanding the relationship between a texture and an image in

  • 0

I am having difficulty understanding the relationship between a texture and an image in OpenGL. I understand that their is an inherent overhead when a texture is rendered by the GPU on the iPhone, and this is exactly the reason that you create a CCSpriteBatchNode (cocos2d) along with a texture atlas for reducing this overhead. But how can the GPU draw different images like rocks, enemies, maybe boats or even huge monsters using the same texture? I read somewhere that textures are supposed to be OpenGL buffers that store the color element values of an image but like I said there could be many different type of objects with different color values so how could they all be drawn using the same texture?

I am completely lost in differentiating between a texture and a real image that we can draw lets say on Illustrator and then copy it into our project using a Texture atlas. Another interesting thing is that a texture should have dimensions that are powers of two but an image can have any dimension! Can anybody please guide me exactly what a texture is and how does it differ from an image? Thank You.

  • 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-06-15T04:32:41+00:00Added an answer on June 15, 2026 at 4:32 am

    About using CCSpriteBatchNode and drawing different thing using one texture. You can have several pictures, combined to the one texture atlas. For one file will be created one texture, that will contain all the images, and all the sprites (as you say, rocks, enemies and so on) will simply use different texture coordinates to draw only some part of the texture, not the whole texture.

    It is useful not only for reducing number of draw calls, that will increase fps rate. It also help you to save application memory and load more pictures at one time. This is about your second question.

    Yes. The dimensions of the loaded into memory texture will be powers of two. So, from the image, that have actual size 64×64 will be created texture with the same size, but for picture with size 65×65 will be created texture with size 128×128. It will increase memory usage. When you crete texture atlas, you can combine many pictures with different sizes in one huge texture atlas with size, for example, 2048×2048. Created texture will have the same size, and it will contain all the images(frames), so you can use it with CCSpriteBatchNode to reduce number of draw calls.

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

Sidebar

Related Questions

I am having some difficulty understanding the connection between my OpenGL application and my
I'm having difficulty in understanding what it is that the gtk.notebook_set_window_creation_hook_function is looking for
I believe I understand TransactionScopeOption.Suppress and TransactionScopeOption.Required but am having difficulty understanding what TransactionScopeOption.RequiresNew
I've having difficulty understanding why 40585 is the greatest factorion that exists. Why can
I'm having difficulty understanding the syntax of C++ Template Template parameters. I understand why
I'm having difficulty understanding this: It is well known that assignment operator won't be
I'm having difficulty understanding variable shadowing in JavaScript based on scopes. Consider this small
I am having difficulty understanding the part value : value == 0 ? How
So I am new to C# and I am having difficulty understanding out .
So I'm new to regular expressions and having difficulty understanding them. To get my

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.