Giter Club home page Giter Club logo

easysdl2setup's Introduction

EasySDL2Setup

A CLion, or cmake, project that will make it easy to start a project that uses the SDL2 library. SDL2 provides low-level access to audio, keyboard, mouse, joystick, and graphics.

SDL2 is my go to library when I need to visualize some functionality but don't want to go to the bother of too much set up.

Getting Started

Use brew to install SDL2 (SDL2: stable 2.0.12) From the EasySDL2Setup directory follow the following steps to build the project

mkdir build
cd build
cmake ..
make

the application demo will be in build in the build/sdl_application directory.

cd sdl_application
./demo

Next Steps

I've deliberately made this project as simple as possible, there are a number of things that could be done to make it better:

  • encapsulate the draw and setup functions into a class
  • SDL_Window and SDL_Renderer could be turned into std::shared_ptr
  • encapsulate SDL_Window and SDL_Renderer into their own classes
  • ...

Prerequisites

The following applications were used to create and build this demo.

  • macOS Catalina(Version 10.15.4)
  • CLion 2020.1.1, c++17,
  • cmake 3.17.2
  • GNU Make 3.81.

Built With

Contributing

I'd be happy to hear any suggestions to make this project more useful.

Authors

  • Rich Nistuk - Initial work - rnistuk

Acknowledgments

  • Noah - Noah likes python and created the wavelength to rgb converter that I used as an example in this project.

easysdl2setup's People

Contributors

rnistuk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.