Sizecode xlib a bit

This commit is contained in:
blackle 2019-04-02 01:15:52 -04:00
parent 9532dc2da3
commit 3982e2535d
2 changed files with 2 additions and 10 deletions

View File

@ -10,6 +10,6 @@ Example code for opening a glsl shader fullscreen with gtk. Closes with the stan
Example code for opening an html page fullscreen with gtk. Closes with the standard ALT+F4 on Ubuntu. WebGL is enabled however is not used in the example. Testing with webkit gtk has found that most(?) shadertoy shaders seem to work. It has yet to be seen if initializing a shader in javascript takes fewer bytes than with gtk's opengl code.
## xlib-opengl - 1524 bytes
## xlib-opengl - 1498 bytes
Example code for opening a glsl shader fullscreen with vanilla xlib. Unlike gtk-opengl, this does not pass in an iTime or render the shader more than once, and also must be closed with ESC. This code is based on the code for Cenotaph For Soda, a 4k gfx demo for Revision 2018
Example code for opening a glsl shader fullscreen with vanilla xlib. Unlike gtk-opengl, this does not pass in an iTime or render the shader more than once, and also must be closed with ESC. This code is based on the code for Cenotaph For Soda, a 4k gfx demo for Revision 2018. OPINION: xlib feels the most fragile of the bunch here...

View File

@ -123,14 +123,6 @@ void _start() {
//switch to using our framebuffer
glBindFramebuffer(GL_FRAMEBUFFER, fboA);
//clear it
// glClear(GL_COLOR_BUFFER_BIT);
//enable additive blending so we don't have to do so in the shader
glEnable(GL_BLEND);
// glBlendEquationSeparate( GL_FUNC_ADD, GL_FUNC_ADD);
glBlendFunc( GL_ONE , GL_ONE_MINUS_SRC_ALPHA);
// glFinish();
glRecti(-1,-1,1,1);