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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:39:53+00:00 2026-06-09T15:39:53+00:00

I wanted to very quickly to make a simple drawing app for iOS, but

  • 0

I wanted to very quickly to make a simple drawing app for iOS, but I can’t quite get the drawing to work – well, to save the content on each layer and restore the layers. It appears like all layers save the same pixels..

The idea was to have three layers and use OpenGL ES to draw on each layer. With no experience in the matter, I just tiled three UIViews and added a OpenGL drawing canvas to each UIView (a modified version of the PaintingView from the tutorial). When the user swapped drawing layer, I simply disabled user interaction on the other layers.

With this approach I experience a lot of oddities that I assume stems from my approach. So now, I think that I should somehow make three full screen buffers in the same PaintingView and just have OpenGL switch between them.

Am I on to something? Have anyone an approach that works?

Anything on-topic might help. Thanks.

  • 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-09T15:39:55+00:00Added an answer on June 9, 2026 at 3:39 pm

    You can make two different framebuffers: one for drawing to screen and second for drawing to texture.
    Then, you can make 3 different textures, they will be your layers. Draw to them.
    Finally, you can draw the textures you have to the first framebuffer and present in on screen.

    Your draw cycle will be smth like this:

    • bind RenderToTextureFramebuffer
    • attach texture1 to RenderToTextureFramebuffer
    • draw what you want in layer 1
    • attach texture2 to RenderToTextureFramebuffer
    • draw what you want in layer 2
    • attach texture3 to RenderToTextureFramebuffer
    • draw what you want in layer 3
    • bind RenderToScreenFramebuffer
    • bind texture1
    • draw texture1 (your layer1)
    • bind texture2
    • draw texture2 (your layer2)
    • bind texture3
    • draw texture3 (your layer3)
    • present final picture on screen
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be very simple question,But please help me. i wanted to know what
I wanted to create a very simple method that switches between views in a
I've developed a very simple host and client which I wanted to use to
Very new to javascript and html-type stuff. I wanted to just make a quick
I'm a big fan of discovering sentences that can be rapped very quickly. For
i know crystal reports very well and i work on this for last 3
This is a very basic question but wanted to confirm that if we have
I know this is very stupid question, but I wanted to clarify this. Let's
I wanted to try out IntelliJ-IDEA but my experiments failed in a very early
i am very new to .net, i just wanted to know how to make

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.