|
Revision 550, 1.5 kB
(checked in by krobillard, 3 months ago)
|
|
Thune:
- 8-bit string encoding is now Latin-1.
- Now using WELL512a generator for random numbers.
- Added hash-map datatype. List datatype can now be disabled in config.
- Added project-point, remap.
- Unique & fill now handle vector!.
- File port 'read now retuns none when end of file reached.
Thune-GL:
- Added draw-prog! & vertex-buffer! datatypes.
- Display now accepts /fullscreen option.
- Added particle-sim dialect.
|
| Line | |
|---|
| 1 | #ifndef SHADER_H |
|---|
| 2 | #define SHADER_H |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | typedef struct |
|---|
| 24 | { |
|---|
| 25 | GLenum type; |
|---|
| 26 | GLint location; |
|---|
| 27 | UAtom name; |
|---|
| 28 | } |
|---|
| 29 | ShaderParam; |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | typedef struct |
|---|
| 33 | { |
|---|
| 34 | GLuint program; |
|---|
| 35 | int paramCount; |
|---|
| 36 | ShaderParam param[1]; |
|---|
| 37 | } |
|---|
| 38 | Shader; |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | int makeShader( UThread*, UCell*, const char* vert, const char* frag ); |
|---|
| 42 | void loadShader( UThread*, UCell* ); |
|---|
| 43 | void destroyShader( Shader* ); |
|---|
| 44 | void setUniform( UThread*, UAtom name, UCell* ); |
|---|
| 45 | void setShaderUniforms( const Shader*, const UBlock* ); |
|---|
| 46 | int shaderTextureUnit( const Shader*, UAtom name ); |
|---|
| 47 | Shader* shaderContext( UThread*, const UCell*, UBlock** blkPtr ); |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | #endif |
|---|