Git Product home page Git Product logo

lolengine's Introduction

About

A collection of scripts and C++ code to make games, demos and tools.

The project is being heavily refactored as a transition effort to the best practices of the 2020s. The old master branch still exists if needed.

Notes

Build dependencies

The following packages are required on Linux:

  • for bootstrapping: automake libtool pkg-config
  • for building: clang make

Nintendo Switch support

That code is private, it needs to be activated manually:

git clone https://github.com/samhocevar/lol-switch

lolengine's People

Contributors

benlitz avatar gbittoun avatar jeunathe avatar jylam avatar low-power avatar samhocevar avatar touky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lolengine's Issues

missing glext.h include without glew

I'm building lolengine (well, specifically lolremez) on msys2 for the heck of it. it built successfully after making this change, though I haven't actually tested OpenGL support. installing glew also works, as you'd expect.

diff --git a/src/lolgl.h b/src/lolgl.h
index 373ea2ae..ac301f84 100644
--- a/src/lolgl.h
+++ b/src/lolgl.h
@@ -47,4 +47,5 @@
 #       define GL_GLEXT_PROTOTYPES
 #       include <GL/gl.h>
+#       include <GL/glext.h>
 #   endif
 #elif defined HAVE_GLES_2X

otherwise, I get a ton of missing enumerations, declarations, etc. when attempting to compile files like src/gpu/shader.cpp.

Clean up Timer class

Find something from C++11 that we can use to replace all the code in src/sys/timer.cpp, then put it in src/lol/sys/timer.h, then get rid of src/sys/timer.cpp. While at it, rename lol::Timer to lol::timer and everyting else to lowercase.

Random crashes in `lol::SdlInputData::Tick`

Sometimes right after startup programs crash randomly. It looks like a race condition:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  operator[] (n=4, this=0x90) at ./lol/base/array.h:148
148         ASSERT(n >= 0 && (n < m_count || (!n && !m_count)),
(gdb) bt
#0  operator[] (n=4, this=0x90) at ./lol/base/array.h:148
#1  SetAxis (value=0, id=4, this=0x0) at ./input/input_internal.h:57
#2  lol::SdlInputData::Tick (this=0xf23850, seconds=<optimized out>) at platform/sdl/sdlinput.cpp:207
#3  0x00000000004658e2 in lol::TickerData::GameThreadTick () at ticker.cpp:353
#4  0x0000000000465dba in lol::TickerData::GameThreadMain (this=0x713ec0 <lol::tickerdata>) at ticker.cpp:161
#5  0x0000000000466875 in operator() (this=<optimized out>) at /usr/include/c++/4.9/functional:2439
#6  lol::thread_base::trampoline (data=<optimized out>) at ./sys/threadbase.h:293
#7  0x00007fc7f75ac0a4 in start_thread (arg=0x7fc7e4ff0700) at pthread_create.c:309
#8  0x00007fc7f6abf04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

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.