├── .gitignore ├── README.md ├── bin └── json-to-mesh ├── composer.json ├── composer.lock ├── example ├── 2d_ball.php ├── 2d_texture_drawer.php ├── 3d_cube_textured.php ├── 3d_hatchet.php ├── 3d_suzane.php ├── images │ ├── ball.png │ ├── hatchet_diff.jpg │ ├── hatchet_spec.jpg │ ├── metal_diff.jpg │ ├── metal_spec.jpg │ ├── noise.png │ ├── noiseb.png │ ├── planks_diff.jpg │ ├── planks_spec.jpg │ ├── test.png │ ├── tiles_diff.jpg │ └── tiles_spec.jpg ├── meshes │ ├── hatchet.obj │ └── suzane.php └── triangle.php └── src ├── Camera └── PerspectiveCamera.php ├── Common └── FrameLimiter.php ├── Component └── Transform3D.php ├── Drawing ├── DebugTextDrawer.php ├── Drawer2D.php ├── LineDrawer.php └── resources │ └── font-bitmap.png ├── Entity ├── Entity.php ├── Primitives │ └── Cube.php ├── Registry.php └── Traits │ ├── Drawable3D.php │ └── Transform3D.php ├── Exception.php ├── Mesh ├── MeshInterface.php ├── MeshManager.php ├── ObjParser.php └── TexturedMesh.php ├── Scene.php ├── Shader ├── Manager.php ├── Program.php └── Shader.php ├── Shaders └── Simple3DShader.php ├── System └── System.php ├── Texture └── Texture.php └── Window.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/README.md -------------------------------------------------------------------------------- /bin/json-to-mesh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/bin/json-to-mesh -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/composer.lock -------------------------------------------------------------------------------- /example/2d_ball.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/2d_ball.php -------------------------------------------------------------------------------- /example/2d_texture_drawer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/2d_texture_drawer.php -------------------------------------------------------------------------------- /example/3d_cube_textured.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/3d_cube_textured.php -------------------------------------------------------------------------------- /example/3d_hatchet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/3d_hatchet.php -------------------------------------------------------------------------------- /example/3d_suzane.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/3d_suzane.php -------------------------------------------------------------------------------- /example/images/ball.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/ball.png -------------------------------------------------------------------------------- /example/images/hatchet_diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/hatchet_diff.jpg -------------------------------------------------------------------------------- /example/images/hatchet_spec.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/hatchet_spec.jpg -------------------------------------------------------------------------------- /example/images/metal_diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/metal_diff.jpg -------------------------------------------------------------------------------- /example/images/metal_spec.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/metal_spec.jpg -------------------------------------------------------------------------------- /example/images/noise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/noise.png -------------------------------------------------------------------------------- /example/images/noiseb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/noiseb.png -------------------------------------------------------------------------------- /example/images/planks_diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/planks_diff.jpg -------------------------------------------------------------------------------- /example/images/planks_spec.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/planks_spec.jpg -------------------------------------------------------------------------------- /example/images/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/test.png -------------------------------------------------------------------------------- /example/images/tiles_diff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/tiles_diff.jpg -------------------------------------------------------------------------------- /example/images/tiles_spec.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/images/tiles_spec.jpg -------------------------------------------------------------------------------- /example/meshes/hatchet.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/meshes/hatchet.obj -------------------------------------------------------------------------------- /example/meshes/suzane.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/meshes/suzane.php -------------------------------------------------------------------------------- /example/triangle.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/example/triangle.php -------------------------------------------------------------------------------- /src/Camera/PerspectiveCamera.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Camera/PerspectiveCamera.php -------------------------------------------------------------------------------- /src/Common/FrameLimiter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Common/FrameLimiter.php -------------------------------------------------------------------------------- /src/Component/Transform3D.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Component/Transform3D.php -------------------------------------------------------------------------------- /src/Drawing/DebugTextDrawer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Drawing/DebugTextDrawer.php -------------------------------------------------------------------------------- /src/Drawing/Drawer2D.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Drawing/Drawer2D.php -------------------------------------------------------------------------------- /src/Drawing/LineDrawer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Drawing/LineDrawer.php -------------------------------------------------------------------------------- /src/Drawing/resources/font-bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Drawing/resources/font-bitmap.png -------------------------------------------------------------------------------- /src/Entity/Entity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Entity/Entity.php -------------------------------------------------------------------------------- /src/Entity/Primitives/Cube.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Entity/Primitives/Cube.php -------------------------------------------------------------------------------- /src/Entity/Registry.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Entity/Registry.php -------------------------------------------------------------------------------- /src/Entity/Traits/Drawable3D.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Entity/Traits/Drawable3D.php -------------------------------------------------------------------------------- /src/Entity/Traits/Transform3D.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Entity/Traits/Transform3D.php -------------------------------------------------------------------------------- /src/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Exception.php -------------------------------------------------------------------------------- /src/Mesh/MeshInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Mesh/MeshInterface.php -------------------------------------------------------------------------------- /src/Mesh/MeshManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Mesh/MeshManager.php -------------------------------------------------------------------------------- /src/Mesh/ObjParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Mesh/ObjParser.php -------------------------------------------------------------------------------- /src/Mesh/TexturedMesh.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Mesh/TexturedMesh.php -------------------------------------------------------------------------------- /src/Scene.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Scene.php -------------------------------------------------------------------------------- /src/Shader/Manager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Shader/Manager.php -------------------------------------------------------------------------------- /src/Shader/Program.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Shader/Program.php -------------------------------------------------------------------------------- /src/Shader/Shader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Shader/Shader.php -------------------------------------------------------------------------------- /src/Shaders/Simple3DShader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Shaders/Simple3DShader.php -------------------------------------------------------------------------------- /src/System/System.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/System/System.php -------------------------------------------------------------------------------- /src/Texture/Texture.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Texture/Texture.php -------------------------------------------------------------------------------- /src/Window.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mario-deluna/php-game-framework/HEAD/src/Window.php --------------------------------------------------------------------------------