Git Product home page Git Product logo

glhck's Introduction

GLhck

buildhck status

Nothing interesting here yet... Move on.

Screenshots

Screenshot Screenshot2 Screenshot3

Building

git submodule update --init --recursive  # - initialize and fetch submodules
mkdir target && cd target                # - create build target directory
cmake -DCMAKE_INSTALL_PREFIX=build ..    # - run CMake, set install directory
make                                     # - compile

Running example(s)

cd target                                # - cd to your target directory
./example/display                        # - for example

Installing

cd target                                # - cd to your target directory
make install                             # - install

Addons for GLhck

Projects using GLhck

Thanks to

  • GLEW - OpenGL Extension Wrangler
  • GLFW - OpenGL Window/Context manager
  • GLSW - The OpenGL Shader Wrangler
  • Font-Stash - Dynamic font glyph cache
  • ACTC - Triangle consolidator
  • Kazmath - C Math library
  • STB-stuff - Used as freetype replacement
  • UTF-8 Decoder - Flexible and Economical UTF-8 Decoder
  • Assimp - Open Asset Import Library
  • OpenCTM - Open Compressed Triangle Mesh file format
  • Imlib2 - GLhck's image format loaders are based on imlib2
  • Kakwafont - GLhck's builtin font

glhck's People

Contributors

cloudef avatar bzar avatar

Stargazers

 avatar  avatar L W avatar David Herberth avatar James Smith avatar  avatar Kazuki Suzuki Przyborowski avatar AJ Kelly avatar Steven Arnow avatar  avatar

Watchers

Kazuki Suzuki Przyborowski avatar Luka Vandervelden avatar  avatar  avatar James Cloos avatar  avatar  avatar

glhck's Issues

Building for emscripten

cmake -DEmscripten=1 looks like it is building for emscripten but I get a bunch errors on make.

I probably don't have all the flags I need. By chance is there an example of building with emscripten.

console output below:

$ cmake .. -DEMSCRIPTEN=1 -DCMAKE_CXX_COMPILER=em++ -DCMAKE_CC_COMPILER=emcc
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /dist/emscripten/em++
-- Check for working CXX compiler: /dist/emscripten/em++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Building GLhck with Emscripten support
NOTE: For examples you need glfw3 emulation in Emscripten.
This is not yet pushed to upstream so, query for more details about this.
Building GLhck with the OpenGL fixed pipeline renderer
Building GLhck with examples
-- Configuring done
-- Generating done
-- Build files have been written to: /dist/glhck/build
devsatpro:build hayssm$ rm -rf ./*
devsatpro:build hayssm$ cmake .. -DEMSCRIPTEN=1 -DCMAKE_CXX_COMPILER=em++ -DCMAKE_CC_COMPILER=emcc
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /dist/emscripten/em++
-- Check for working CXX compiler: /dist/emscripten/em++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Building GLhck with Emscripten support
NOTE: For examples you need glfw3 emulation in Emscripten.
This is not yet pushed to upstream so, query for more details about this.
Building GLhck with the OpenGL fixed pipeline renderer
Building GLhck with examples
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_CC_COMPILER

-- Build files have been written to: /dist/glhck/build
devsatpro:build hayssm$ make
Scanning dependencies of target chckBuffer
[ 1%] Building C object lib/chck/CMakeFiles/chckBuffer.dir/src/buffer/buffer.c.o
Linking C static library libchckBuffer.a
[ 1%] Built target chckBuffer
Scanning dependencies of target texhck
[ 3%] Building C object lib/texhck/src/CMakeFiles/texhck.dir/texhck.c.o
Linking C static library lib/libtexhck.a
[ 3%] Built target texhck
Scanning dependencies of target kazmath
[ 5%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/aabb.c.o
[ 7%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/mat3.c.o
[ 9%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/mat4.c.o
[ 11%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/plane.c.o
[ 13%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/quaternion.c.o
[ 15%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/ray2.c.o
[ 16%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/ray3.c.o
[ 18%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/utility.c.o
[ 20%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/vec2.c.o
[ 22%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/vec3.c.o
[ 24%] Building C object lib/kazmath/CMakeFiles/kazmath.dir/src/kazmath/vec4.c.o
Linking C static library libkazmath.a
[ 24%] Built target kazmath
Scanning dependencies of target glsw
[ 26%] Building C object lib/glsw/CMakeFiles/glsw.dir/src/bstrlib.c.o
[ 28%] Building C object lib/glsw/CMakeFiles/glsw.dir/src/glsw.c.o
Linking C static library libglsw.a
[ 28%] Built target glsw
Scanning dependencies of target glhck
[ 30%] Building C object src/CMakeFiles/glhck.dir/glhck.c.o
[ 32%] Building C object src/CMakeFiles/glhck.dir/alloc.c.o
[ 33%] Building C object src/CMakeFiles/glhck.dir/trace.c.o
/dist/glhck/src/trace.c:97:11: error: expected ')' in parentheses expression
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:13: note: instantiated into assembly here
if (typeof __glhckTraceEmscriptenURL != 'undefined')__glhckTrace...
^
/dist/glhck/src/trace.c:97:11: error: single quote way too long
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:42: note: instantiated into assembly here
if (typeof __glhckTraceEmscriptenURL != 'undefined')__glhckTrace...
^
/dist/glhck/src/trace.c:97:11: error: single quote way too long
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:52: note: instantiated into assembly here
if (typeof __glhckTraceEmscriptenURL != 'undefined')__glhckTrace...
^
/dist/glhck/src/trace.c:97:11: error: single quote way too long
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:123: note: instantiated into assembly here
...'i8', ALLOC_STACK));else Module.print('__glhckTraceEmscriptenURL was no...
^
/dist/glhck/src/trace.c:97:11: error: single quote way too long
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:126: note: instantiated into assembly here
...'i8', ALLOC_STACK));else Module.print('__glhckTraceEmscriptenURL was no...
^
/dist/glhck/src/trace.c:97:11: error: single quote way too long
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:161: note: instantiated into assembly here
...'i8', ALLOC_STACK));else Module.print('__glhckTraceEmscriptenURL was no...
^
/dist/glhck/src/trace.c:97:11: error: unexpected token in memory operand
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:161: note: instantiated into assembly here
...'i8', ALLOC_STACK));else Module.print('__glhckTraceEmscriptenURL was no...
^
/dist/glhck/src/trace.c:97:11: error: single quote way too long
asm("if (typeof __glhckTraceEmscriptenURL != 'undefined')"
^
:1:232: note: instantiated into assembly here
...was not exported for some reason.. Skipping!');

Move to rust, or change aim

Currently glhck does way too much. Due to this, it's harder to optimize game which is what glhck was all about first. Speed for mobile platforms.

Destroy glhck and make it into a async asset library similar to assimp.

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.