Clutter Wiki

Views
From ClutterProject
Jump to: navigation, search

The following example program shows the basics of using Cogl with only the minimal amount of Clutter API calls.

File:CoglBasicsExampleScreenshot.jpg‎

The example shows how to:

  • Setup a COGL window
  • Toggle between full-screen and windowed mode
  • Setup the projection matrix for 3D perspective projection
  • Render text using Pango
  • Load textures from file
  • Use Vertex Buffers
  • Rotation, scaling, and transformation
  • Listen to keyboard events
  • Listen to mouse events

Click here to download source code: File:COGLBasicsExample.zip

Personal tools