Giter VIP home page Giter VIP logo

chadthecoder / graphicsproject Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 3.0 194.29 MB

Graphics project using SDL2, ASIO OPENGL, GLEW, WebGL, miniaudio, stb (Only stb_image.h right now), assimp (implementing now), PerlinNoise from Reputeless, and GLM. Following multiple tutorials to learn how to code graphics in C++.

C++ 22.97% Makefile 0.05% Shell 0.01% C 41.01% Objective-C 0.43% CMake 0.20% M4 0.06% JavaScript 1.29% HTML 33.57% CSS 0.24% GLSL 0.01% SCSS 0.02% Objective-C++ 0.14%

graphicsproject's Introduction

Graphics Project with SDL2, ASIO, OpenGL using GLEW, and GLM

This is a graphics project written in C++ that utilizes SDL2 and OpenGL using GLEW and GLM libraries to create graphical applications. The project aims to provide a starting point for learning graphics programming in C++. The pong game has been moved to https://github.com/chadthecoder/NetworkPongGame as it is now its own project to work on using what I have learned while experimenting in this repo.

Here are two drawings I made to show how the cube should be rendered using my current plan. Alt text Alt text

Prerequisites

Before you begin, ensure you have the following dependencies installed on your system:

  • SDL2

  • OpenGL

  • GLEW

  • GLM

  • Makefile (for building)

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/yourusername/graphics-project.git
    
    cd graphics-project
    
  2. Build the project using CMake:

    cd pingPong
    
    make lin (make win for Windows)
    
  3. Run the compiled executable:

    make runLin (make runWin for Windows)
    
  4. Clean the compiled executable (If needed):

    make cleanLin (make cleanWin for Windows)
    

Project Structure

  • asioGraphicsNetwork/: Contains a simple UDP file for multiplayer game later.

  • 2dgameengine/: Contains header files for your project.

  • imageTest/: Contains imageTest for SDL2.

  • sdlGlewTest/: Contains test of using SDL2 and GLEW together for learning.

  • webgl/: Contains webgl test for learning.

In Each Project Structure

  • linux/: Contains linux .o files and binaries.

  • windows/: Contains windows .o files and .exe files.

Resources

Here are some resources to help you learn more about the libraries used in this project:

Contributing

If you'd like to contribute to this project, feel free to submit pull requests or open issues.

Replace "https://github.com/yourusername/graphics-project.git" with the actual URL of your project's repository.

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.