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

Undefined method 'z' for Window #43

Open
TzA-0x000000001 opened this issue Jan 8, 2017 · 0 comments
Open

Undefined method 'z' for Window #43

TzA-0x000000001 opened this issue Jan 8, 2017 · 0 comments

Comments

@TzA-0x000000001
Copy link

Hello.

I wanted to use Ashton with this OpenGL wrapper so I changed the code in order to make it work. And well, it works pretty well if I fix this error: <ASHTON_PATH>/lib/ashton/shader.rb:109:in `enable': undefined method `z' for #<TestWindow:0x305d168 @__swigtype__="_p_Gosu__Window"> (NoMethodError).

So, I just tried adding some lines to the Window class:

def z(&block) ; yield ; end

And it worked! Well... only for some things. I can post_process(){ ... } but I can't add a shader to a specific image and the post processed blocks are ignoring z depth.
I looked for some def z ; ... ; end in the code but found nothing ; so what can I do ? What's that method and how can I rewrite it ?

Thank you for your attention.

Best regards,
TzA

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

1 participant