Skip to content

Latest commit

 

History

History

Cpp

Tutorials and Examples

This repository contains several tutorials and examples which show how to use LLGL. Note that you need to set the working directory to <Your-LLGL-Repository>/examples/Cpp/<Example> in order to get your examples running. For the first example, this could be /Users/JohnDoe/LLGL/examples/Cpp/HelloTriangle or C:\Users\JohnDoe\LLGL\examples\Cpp\HelloTriangle for instance.

Tutorials

Getting started tutorial where a single multi-colored triangle is rendered.

Simple tessellation tutorial (without texturing).

Tutorial how to integrate ImGui into an LLGL project for UI rendering and event handling.

Examples

Simple texturing and sampler state example.

Example how to render fonts efficiently in batched draw calls.

Shows how to use Query objects and conditional rendering for occlusion culling.

Simple render target example with optional multi-sample texture (Texture2DMS/ sampler2DMS).

Shows the following rendering techniques: multiple render contexts (one window each), rendering simultaneously into multiple viewports, geometry shader.

Small example with a compute shader and a storage buffer.

Small example with a geometry shader and a stream-output buffer.

Practical example of hardware instancing by rendering tens of thousands of different textured plants instances.

Practical example of a glow effect with post-processing and the usage of several shaders, render targets and graphics pipelines.

Experimental example of using multiple renderers at once (only supported on Win32 platform).

Practical example of standard shadow-mapping technique.

Rendering a portal using the stencil buffer.

Small animation example with orthogonal projection.

Example of generating perlin noise into 3D texture with a glitter effect and volume rendering.

Practical example of multiple compute shaders for position based dynamics.