Coder Social home page Coder Social logo

pixelrifts / c-codebase Goto Github PK

View Code? Open in Web Editor NEW
298.0 7.0 21.0 52.86 MB

A simple base layer, and utilities for my own C development. A lot of the stuff came from https://www.youtube.com/c/Mr4thProgramming, but I have made a few simplifications/modifications

License: MIT License

Batchfile 0.78% Roff 0.33% C 95.16% GLSL 1.40% HLSL 1.73% Shell 0.60%

c-codebase's Introduction

c-codebase

My Codebase for C programming. Based a little on https://www.youtube.com/c/Mr4thProgramming but a lot more is added here

Mainly made to use as few libraries as possible and for my own exploration and use.

What does this codebase have

  • A Base Layer:
    • Basic Memory Allocators
    • String Utilities
    • Thread Context
    • Math
    • Logging
    • Generic Data structure defining macros
  • An OS Layer: (Only win32 and x11 linux implemented):
    • Basic File handling
    • Dynamic Library Loading
    • Windowing
    • Input
    • Timing
    • Threading
  • A Core Graphics Layer:
    • Multiple Backends (OpenGL 3.3, OpenGL 4.6 and D3D11)
    • OS Specific Device/Context Creation
    • OpenGL Function Loading
    • Thin wrapper over backend specific calls (Buffers, Pipelines and Shaders are generic to all backends)
  • Several Optional Layers
    • Simple 2D Renderer
    • User Interface (Somewhat complete)
    • Simple 2D Physics (Only collision detection and resolution done. No dynamics yet)

How do I use this codebase?

I would recommend you to make your own :) However if you still want to: It has a simple build script file. Just cd into the directory and run build.bat or build.sh!

You need clang OR MSVC installed as I have not tested this with gcc. AFAIK it should just work with gcc anyways.

Not tested EXTENSIVELY with linux but the codebase does work

TODOs

  • Linux

    • Windowing with X11
    • Input Handling
    • OpenGL 3.3 backend layer
    • OpenGL 4.6 backend layer
  • Optional Layers

    • More UI Widgets
  • D3D11

    • Framebuffer support
  • Cleanup

    • Switch from X-Lists to Metaprogram tables for OpenGL function loading
    • Remove Backend specific links (d3d11) by loading functions from dll
  • Major Goals

    • Custom Build system (so I can combine .bat and .sh build files)
  • Maybes

    • Implement functions that are insanely tedious (OS_ThreadWaitForAll/Any and others)

c-codebase's People

Contributors

drnotthatevil avatar pixelrifts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

c-codebase's Issues

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.