It is currently Fri Jul 28, 2017 2:02 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Shader coding with PB possible?
PostPosted: Fri Sep 30, 2016 5:48 pm 
Offline
User
User

Joined: Thu Mar 30, 2006 11:14 am
Posts: 92
Many of the OpenGL commands that you pass strings to will need modifying, this is due to PB switching to Unicode strings internally.

Changing:
Code:
Prototype.i glGetUniformLocation(Program.i, name.s)

to:
Code:
Prototype.i glGetUniformLocation(Program.i, name.p-ascii)

should fix the black screen issue.


Top
 Profile  
Reply with quote  
 Post subject: Re: Shader coding with PB possible?
PostPosted: Sat Oct 01, 2016 7:04 am 
Offline
Addict
Addict

Joined: Sun Jun 25, 2006 7:28 pm
Posts: 1252
Thank you pjay for the info, i was about to despair, but now after modifications the shaders works okay in PB 5.5


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye