Skip to content

bg-thompson/OpenGL-Tutorials-In-Odin

Repository files navigation

A collection of introductory OpenGL programs in Odin.

The programs below illustrate OpenGL functions in Odin using the wrappers in "vendor:OpenGL". The programs start very basic and get progressively more complicated.

The glfw library wrappers for Odin in "vendor:glfw" are also illustrated.

Building

Building the examples is trivial; the standard Odin distribution is the ONLY dependency.

Simply call odin run DIRECTORY -o:speed where DIRECTORY is the name of one of the project's directories to build and run an example. (E.g. odin run Rainbow-Triangle -o:speed.)

A window which oscillates between pink and blue.

An OS window filled with the color pink.

An RGB triangle which rotates over time.

A OS window showing a slightly slanted RGB triangle.

A cube with different faces which rotates over time.

An OS window showing a cube in the middle of rotation.

An image of the Earth changes color over time.

An OS window showing a picture of the with purple seas and turqoise land.

A character moves in a counter-clockwise circle over time.

An OS window showing the character '@'.

The characters of a sentence move in the form of a sine wave over time.

The sentence: Duty calls, 3 o'clock tea! in the shape of a sine wave.

Triangles which together form an animal are revealed when the mouse cursor passes over them.

A collection of partially uncovered grey triangles which together form a popular animal.

About

A collection of introductory OpenGL examples in Odin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published