[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Slick Forums :: View topic - [ADDED] Managed Shader support
Slick Forums
http://slick.ninjacave.com/forum/

[ADDED] Managed Shader support
http://slick.ninjacave.com/forum/viewtopic.php?f=27&t=4682
Page 1 of 5

Author:  liamzebedee [ Sat Mar 10, 2012 5:02 am ]
Post subject:  [ADDED] Managed Shader support

I've added Managed Shader support in the package org.newdawn.slick.shader. To create a test class, I need an example vertex and fragment shader. Anyone?

Author:  davedes [ Sat Mar 10, 2012 8:38 am ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  liamzebedee [ Sat Mar 10, 2012 10:38 am ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  R.D. [ Sat Mar 10, 2012 2:59 pm ]
Post subject:  Re: [ADDED] Managed Shader support

liam, please stopp getting ahead on everything. I have a lot of problems with your system too. davedes system is also a lot cleaner and easier to understand imho :D

Author:  davedes [ Sat Mar 10, 2012 3:33 pm ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  davedes [ Sat Mar 10, 2012 7:33 pm ]
Post subject:  Re: [ADDED] Managed Shader support

Here's some changes to my old class. It uses a hash map for convenience, like LibGDX, and adds a Shader inner class (which maybe will be moved to outer leve) for shader/program independency.
http://pastebin.com/kSXpYnAb

The releasing stuff is a bit messy. We'll have to add things like detachShader/attachShader if we really want it to be independent (and make shaders reusable over multiple programs).

Author:  liamzebedee [ Sun Mar 11, 2012 12:50 am ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  davedes [ Sun Mar 11, 2012 2:11 am ]
Post subject:  Re: [ADDED] Managed Shader support

Instead of abstracting the entry point to GL in the Program class, it should be done in Slick's SGL class. (Same goes for FBOGraphics.)

Author:  R.D. [ Mon Mar 19, 2012 10:00 am ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  liamzebedee [ Mon Mar 19, 2012 10:22 am ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  R.D. [ Mon Mar 19, 2012 12:02 pm ]
Post subject:  Re: [ADDED] Managed Shader support

Maybe you really want to look and davdes implementation. I got it working without even reading the source or anything :) Want you want for sure is loading the source into a string using the ResourceLoader! That's the proper way for Slick2D loading.

Ah okay, I wasn't aware of it :D Keep on doing awesome stuff :D

Author:  davedes [ Mon Mar 19, 2012 2:03 pm ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  R.D. [ Mon Mar 19, 2012 3:45 pm ]
Post subject:  Re: [ADDED] Managed Shader support


Author:  davedes [ Mon Mar 19, 2012 7:13 pm ]
Post subject:  Re: [ADDED] Managed Shader support

Uniforms are only "active" in GLSL if the compiler can determine that they are actually used; so "time" (since you don't use it in the shader) isn't considered an active uniform and thus its uniform location (i.e. ID) returns -1.
http://ogltotd.blogspot.ca/2007/12/acti ... ertex.html

I'll have to implement something to ShaderProgram like hasUniform or isUniformActive, as well as some error checking within setUniformXX to ensure that no null pointers are thrown.

Thanks for the find.

Author:  davedes [ Mon Mar 19, 2012 8:14 pm ]
Post subject:  Re: [ADDED] Managed Shader support


Page 1 of 5 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/