Skip to content

Instantly share code, notes, and snippets.

@andykorth
Created June 16, 2014 18:53
Show Gist options
  • Save andykorth/d1cf946f50ad1cb60f30 to your computer and use it in GitHub Desktop.
Save andykorth/d1cf946f50ad1cb60f30 to your computer and use it in GitHub Desktop.
Core engine classes
90 LOM/engine/Cubemap.cs <---- derives from Texture.cs
140 LOM/engine/FullScreenEffect.cs
56 LOM/engine/GameObject.cs <---- Basic GameObject, or entity.
242 LOM/engine/GameState.cs <---- Base class game state, manage objects, time, gameloop, input, matrix
17 LOM/engine/Input.cs
104 LOM/engine/Log.cs
83 LOM/engine/Main.cs
391 LOM/engine/Material.cs <---- Materials = shader, textures, and uniforms.
148 LOM/engine/RenderQueue.cs <---- Automatic batching and depth sorting.
44 LOM/engine/Screen.cs <----
681 LOM/engine/Shaders.cs <---- All the actual GLSL shader code, fairly repetitious
192 LOM/engine/Sprite.cs <---- Sprites are my 2D gameobject
153 LOM/engine/SpriteAtlas.cs <---- Sprites from a atlas share a material and texture
157 LOM/engine/Texture.cs
180 LOM/engine/TileMap.cs <---- Simple tile map drawing w/ batching
78 LOM/engine/Time.cs <---- Manage timing of gameloop
153 LOM/engine/TimerHeap.cs <---- Cool class to efficiently schedule timed events
2909 total
The entire moped scene:
424 LOM/Testing/TestModelState.cs
Bitmap Text Drawing, adapted from another source
106 LOM/engine/Utilities/BMFont.cs
305 LOM/engine/Utilities/BMFontDrawer.cs
141 LOM/engine/Utilities/BMFontReader.cs
70 LOM/engine/Utilities/BMGlyph.cs
622 total
Borrowed Math code
268 LOM/Pencil.Gaming/Math/MathHelper.cs
1168 LOM/Pencil.Gaming/Math/Matrix.cs
504 LOM/Pencil.Gaming/Math/Quaternion.cs
100 LOM/Pencil.Gaming/Math/Rectangle.cs
79 LOM/Pencil.Gaming/Math/Rectanglei.cs
745 LOM/Pencil.Gaming/Math/Vector2.cs
556 LOM/Pencil.Gaming/Math/Vector2i.cs
1129 LOM/Pencil.Gaming/Math/Vector3.cs
757 LOM/Pencil.Gaming/Math/Vector3i.cs
1812 LOM/Pencil.Gaming/Math/Vector4.cs
1534 LOM/Pencil.Gaming/Math/Vector4i.cs
8652 total
Basic GLFW Bindings (windowing and input)
136 LOM/GLFW/GLFWAndy.cs
OpenGL Bindings - high line count due to comments and autogenerated code.
12523 LOM/Pencil.Gaming/Graphics/GL.cs
702 LOM/Pencil.Gaming/Graphics/GLCore.cs
2733 LOM/Pencil.Gaming/Graphics/GLDelegates.cs
8809 LOM/Pencil.Gaming/Graphics/GlEnums.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment