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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:38:49+00:00 2026-06-03T09:38:49+00:00

I have two UIViews, each with their own separate renderBuffers and frameBuffers. They belong

  • 0

I have two UIViews, each with their own separate renderBuffers and frameBuffers. They belong to different ViewControllers. I already have them connected via NSNotificationCenter, so that is all set.

I just need to basically render the texture in ClassAView’s frameBuffer into ClassBView’s frameBuffer. This seems like it should be pretty easy… I tried passing in the texture I have bound in ClassAView:

glBindTexture(GL_TEXTURE_2D, myClassATexture);

then after say, tapping the screen, I try passing the texture over to ClassBView:


// in ClassA:
[classBView addTexture:myClassATexture];

// In ClassB's addTexture method:
myClassBTexture = newTexture
glClear, glBindTexture, etc...
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
[self presentFramebuffer];

But it’s resulting in a black screen. I tried to NSLog myClassATexture but it’s printing out “0.”

Anyway, how would I go about effectively passing along the already rendered texture in ClassA to ClassB?

I’m targeting iOS 5.0 so if there’s an easy way to do it that requires iOS 5 I’m all ears. 🙂

Thanks a bunch!

  • 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-03T09:38:49+00:00Added an answer on June 3, 2026 at 9:38 am

    A texture ID of 0 indicates no texture, so you need to make sure you’re properly copying the texture ID to use later.

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

Sidebar

Related Questions

I have a UIGestureRecognizer that I want to work on two different UIViews, both
I have two views inside my XIB for each orientation. They are similar but
I have a UINavigationController with two screens - each screen with its own nav
I have a two UIViews filled with UIButtons. I want to only allow one
I have two application that need to talk to each other. App1 needs to
I have two classes generated by LINQ2SQL both from the same table so they
I am bit stack with creating two UIViews which are switchable (each UIView has
I have an UIViewController that has two UIViews inside, whose layout (set in Interface
Currently I have UITableView and simple UIView in my iPad application. Each of them
I have two uiviews 1 child and 1 parent parent view has alpha .30

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.