Git Product home page Git Product logo

gtk_4k_template's Introduction

gtk_4k_template

A 4K exegfx Template for Linux x86_64 Based on Blackles Linux OpenGL examples (GTK) but even smaller. https://github.com/blackle/Linux-OpenGL-Examples

Tools used to do this production:

Dependencies:

ibglib2.0-0

libgtk-3-0

libgl

libdispatch (When using oneKpaq)

Build instructions:

Edit the Makefile and point the Variable called "SHADER" to the desired shader found in the "shaders" folder. Edit WIDTH and HEIGHT in the Makefile to the resolution of your screen.

Build LZMA-packed target with a shell script dropper:

make sh

Build LZMA-packed target with vondehi as dropper:

make vndh

Build oneKpaq target:

make okp

Build all three targets:

make all

Create your own shaders:

Create a new textfile in the shaders subdirectory and edit your shader. No #version directive is needed, "#version 400" is added automatically. In the shader use i_X and i_Y for screen dimensions, they are generated automatically and opted out by shader minifier, if they aren't used. Edit WIDTH and HEIGHT in the Makefile for your needs. They will be added by the Makefile while compilation to your shader. So there is no need, to define them yourself. This way we save some bytes, because we don't need to do a uniform update. If you need a time uniform, use "uniform float iTime;" for runtime in seconds. The uniform update code will be added automatically, when this is present in the shader.

Screenshots:

Blackles example shader (optimized) - Static - Shortest version (okp vs. vndh): 875 Bytes (vondehi) blackle.jpg

Competition - Static - Shortest version (okp vs. vndh): 1930 Bytes (OneKpaq) competition.jpg

Slimebox - Animated - Shortest version (okp vs. vndh): 1441 Bytes (OneKpaq) slimebox.jpg

Nucleus - Animated - Shortest version (okp vs. vndh): 1471 Bytes (OneKpaq) nucleus.jpg

Have fun!

gtk_4k_template's People

Contributors

donnerbrenn avatar

Watchers

 avatar  avatar

Forkers

porocyon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.