List of freely available resources to study computer graphics programming.
Zig aims to be a simple language. It is not easy to define what simple exactly means, but zig is also a low-level programming language that aims for c-compatibility. To reach this goal, it needs good semantics in its type system so that developers have a complete toolbox to manipulate data.
So types in zig are composable, but this can become rapidly overwhelming. See those examples. Are you able to understand them at a glance, as soon as you read them?
*const ?u8
?*const u8
*const [2]u8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| namespace Memento | |
| { | |
| public class Coroutine | |
| { | |
| public bool Paused { get; set; } | |
| internal void Reset(IEnumerator routine) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- So shaders in love only are applied to drawables, which means you can apply | |
| -- diffrent shaders to diffrent sprites, which is nice. Although if you want to | |
| -- apply a shader to a whole scene at once, for example a bloom shader, then you | |
| -- will have to draw all your sprites to a canvas or image, and then draw that | |
| -- composite with the shader. | |
| -- Creates a shader with the given vertex and fragment shader source code. I'll | |
| -- explain that in more detail later. You want to be caching this shader somewhere | |
| -- because it's expensive to create. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/usr/bin/sh | |
| echo "Download XAMPP" | |
| wget http://downloads.sourceforge.net/project/xampp/BETAS/xampp-linux-1.7.7.tar.gz | |
| echo "install ia32-libs" | |
| sudo apt-get install ia32-libs | |
| echo "Extrach XAMPP" | |
| sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt | |
| echo "install python-gtk2-dev with xampp controller panel" | |
| sudo apt-get install python-gtk2-dev | |
| echo "Start LAMP" |