GithubHelp home page GithubHelp logo

sgengine's Introduction

SGEngine

Stuart's Game Engine

This is a work-in-progress library of math and rendering classes intended for use in simple game or simulation projects. This is a learning project for my own enjoyment, so I don't intend to release things until I feel that they are somewhat stable, or at least useful. Many classes are subject to change often. Please see the License file for licensing details.

Contents

Most of the math libraries can be taken out on their own and used. The rest of the classes likely depend on LWJGL. ImageIO related stuff, I try and stick to built in Java platform facilities where possible.

sge.math:

  • Vector[2,3,4]: Immutable value Vectors
  • MVector[2,3,4]: Vectors supporting destructive updates
  • Matrix[2,3,4]: Matrix multiplication
  • Quaternion: Quaternion Rotations

sge.bounds:

  • Line2D: Check intersections of 2D lines
  • Circle: Check intersections and containment of circles
  • Rectangle: Check intersections and containment of rectangles
  • AABB check intersections and containment within Axis aligned bounding boxes
  • Sphere check intersections and containment within spheres

sge.color:

  • RGBA color as float ratios (0..1), and int values (0..255)
  • HSL color

sge.geom:

  • Vertex: Drawable Vertex (position, normal, texture coordinate, color),
  • Triangle: Face composed of 3 Vertices
  • VertexArray: Interleaved float[] with Stride equal to Vertex.SIZE
  • Vector3Array: interleaved float[] with Stride equals to Vector3.SIZE
  • Mesh: Surface object using lists of Vertices and indices

sge.renderer:

  • GLSLProgram: Compile and bind shader resources
  • Image: Loading images from files or from arbitrary producers (tbd)
  • MeshRenderer: Send mesh data to GPU and render objects.

sgengine's People

Contributors

stuhacking 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.