Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
Find a file
2012-11-08 20:29:58 -08:00
3rdparty Unified code path for ARB_get_program_binary and OES_get_program_binary. 2012-11-08 20:29:58 -08:00
examples Handle all enums in switch. 2012-11-03 21:29:41 -07:00
include Fixed update texture. 2012-11-03 21:36:17 -07:00
premake Added support for GL_ANGLE_instanced_arrays. 2012-11-05 23:09:17 -08:00
src Unified code path for ARB_get_program_binary and OES_get_program_binary. 2012-11-08 20:29:58 -08:00
tools Fixed vertex decl attribute size calculation. 2012-11-03 13:12:26 -07:00
.gitignore Added OpenGL support for Windows build. Added Linux support (Thanks @MatthewEndsley for X window and GLX code). Fixed uniform size for D3D9. 2012-05-29 18:24:55 -07:00
LICENSE Initial commit. 2012-04-03 20:30:07 -07:00
makefile Added emscripten platform. 2012-10-21 22:09:14 -07:00
README.md Updated readme with building instructions. 2012-11-04 15:26:27 -08:00

bgfx

Cross-platform rendering library.

Supports:
OpenGL 2.1, OpenGL ES 2.0, and Direct3D 9.0.

Platforms:
Windows, Linux, Android, and Native Client.

Dependencies

https://github.com/bkaradzic/bx

Optional:
https://github.com/mendsley/tinystl

Building

Getting source:

git clone git://github.com/bkaradzic/bx.git
git clone git://github.com/bkaradzic/bgfx.git
cd bgfx
make

After calling make, .build/projects/* directory will be generated. All intermediate files generated by compiler will be inside .build directory structure. Deleting .build directory at any time is safe.

Visual Studio 2008:

start .build/projects/vs2008/bgfx.sln

Linux 64-bit:

make -R linux-release64

Other platforms:

make -R <configuration>

Configuration is -<debug/release><32/64>. For example:

linux-release32, nacl-debug64, android-release32, etc.

Notice

This is alpha software, and it lacks documentation and examples. If you're interested to use it in your project, please let me know.

Contact

@bkaradzic
http://www.stuckingeometry.com

Project page
https://github.com/bkaradzic/bgfx

License

Copyright 2010-2012 Branimir Karadzic. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.