Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render a view on the back face? #9

Closed
mgruendler opened this issue Oct 17, 2011 · 7 comments
Closed

How to render a view on the back face? #9

mgruendler opened this issue Oct 17, 2011 · 7 comments

Comments

@mgruendler
Copy link

Hi Xiss,

How can I draw a view on the backside of the curling view? I'm not sure whether this is already implemented, but I couldn't find a mechanism. There is a backTexture in XBCurlView.h, but it seems that is not used. Do you have a plan to implement this feature or am I missing something?

@xissburg
Copy link
Owner

Do you mean a double-sided page?

@mgruendler
Copy link
Author

Yes, I mean a double page. I would like to implement a page flip of a comic book and would like to turn the page by curling. On the back side of the curled view I would like to render the next page of the comic.

@xissburg
Copy link
Owner

Ok I understand. You made a correct guess on the backTexture, it is intended to be the texture that should be rendered on the backside of the page. But up till now, I have just created that variable! Since you're needing the feature, I will give priority to it.

Thanks.

@mgruendler
Copy link
Author

That would be great!

@xissburg
Copy link
Owner

I implemented an initial version of it. You just have to call the -[XBCurlView drawViewOnBackOfPage:] in order to draw a view on the back side of the curled page (the sample app is now doing that).

The code still needs some refactoring but the API should not change.

@xissburg xissburg reopened this Oct 20, 2011
@xissburg
Copy link
Owner

Ops, now I see I forgot to flip the texture horizontally! I am gonna solve it later.

@moscow25
Copy link

moscow25 commented Jul 3, 2013

I'm trying to use the drawViewOnBackOfPage function to draw the back of a playing card on the underneath of a view. So as to have a flexible two-sided card that I can peek at.

Code looks great, but does anyone have a working example I can see where drawViewOnBackOfPage is used?

Thanks!
chinesepokerwireframes_squeeze_corner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants