This project is dedicated to helping people solve the ancient problem of drawing a triangle with SDL. For those of you who don't know, SDL is an awesome library that people often use to make games because it lets you draw pixels to the screen and manage keyboard input.

https://www.libsdl.org/

But unlike Raylib of Allegro, it does not appear to have a standard easy way to draw shapes other than rectangles. This is a mystery people have been trying to solve. People often ask this question and people tell them "Just use OpenGL". This is not helpful for people who want to make games involving triangle or other polygons(which can all be built with triangles). Not everybody should be forced to learn OpenGL because it is not at all easy!

But while all that has been happening. A new function was added to SDL which is capable of doing exactly what we all need.

https://wiki.libsdl.org/SDL2/SDL_RenderGeometry

My code examples will show you how it works!

Features

  • SDL
  • Triangles
  • Graphics
  • C
  • Pixels

Project Samples

Project Activity

See All Activity >

Follow SDL_Chaste_Triangle

SDL_Chaste_Triangle Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SDL_Chaste_Triangle!

Additional Project Details

Registered

2023-03-08