Permalink
Commits on Oct 13, 2013
  1. Free the string returned by SDL_AndroidGetLocale().

    Julien Jorge committed Oct 13, 2013
Commits on Oct 12, 2013
  1. Sleep 1 second if the game is in the background.

    Julien Jorge committed Oct 12, 2013
  2. Update the last progress date when the app is in the background.

    Otherwise the progress loop becomes longer and longer.
    Julien Jorge committed Oct 12, 2013
  3. Adjusts the position of the events in the gui_layer.

    When the window's size is not the size of the camera, the positions
    did not match.
    Julien Jorge committed Oct 12, 2013
  4. Reduce the number of calls to glSomethingPointer().

    As long as we render textured polygons, we pass every vertices, colors
    and texture coordinates in a single call. Then we call glDrawArrays()
    with the right vertex index and vertex count when binding the textures.
    Julien Jorge committed Oct 12, 2013
  5. Displays OpenGL version in the logs.

    Julien Jorge committed Oct 12, 2013
Commits on Oct 8, 2013
  1. Bug fix: invalid iterator dereferenced.

    bear::universe::world_progress_structure used to store the iterator at the end
    of the neighborhood before processing a loop which erases elements in the
    neighborhood and thus invalidates the iterators.
    
    Now we check the end iterator at each iteration.
    Julien Jorge committed Oct 8, 2013
Commits on Oct 7, 2013
  1. Log the processing of the application events.

    Julien Jorge committed Oct 7, 2013
Commits on Oct 3, 2013
  1. Adds a translator to use Gettext on Android.

    The implementation relies on a slightly modified version of
    libintl-lite, release 0.5; a patched version of SDL 2 to add a
    function returning the user's locale [1]. Moreover, the system
    must have an implementation of fmemopen().
    
     [1] https://bugzilla.libsdl.org/show_bug.cgi?id=2131
    Julien Jorge committed Oct 3, 2013
Commits on Oct 1, 2013
  1. When unpausing the screen, do not unlock the gl mutex if we were not …

    …paused.
    Julien Jorge committed Oct 1, 2013
  2. Remove profiling stuff from the level_loader.

    Julien Jorge committed Oct 1, 2013
  3. The sounds are loaded in a thread.

    Half the time spent loading a level is in the loading of the level's music. This
    commit moves the loading of the sounds in a thread in order to allow continuing
    the process without blocking.
    
    If one tries to play the sound before the loading completes, then the thread is
    forced to finish.
    Julien Jorge committed Oct 1, 2013
  4. The sounds are copied from one level to the other.

    bear::engine::level_globals uses the shared and temporary resources to find the
    existing sounds.
    Julien Jorge committed Oct 1, 2013
  5. Pass the images from one level to the next.

    bear::engine::level_globals accept a temporary resource source from which it
    will copy the image resources until being frozen. This way, we can pass images
    from one level to the next and reduce the loading time.
    Julien Jorge committed Oct 1, 2013
  6. Removes useless includes.

    Julien Jorge committed Oct 1, 2013
  7. Lock every access to the GL API when the renderer is paused.

    When the application was paused during the loading of a level, pausing the
    rendering thread did not avoid creating new textures. These textures were
    invalid when the application was activated, forcing us to restore all the
    textures.
    
    With the new lock, no invalid textures are created and we can avoid the
    restoration.
    Julien Jorge committed Oct 1, 2013
Commits on Sep 30, 2013
  1. Restores the resources when coming back to the foreground on Android.

    If the app goes to the background during the loading of a level, its resources
    become invalid (the images and the shaders). Thus we reload them.
    
    The rendering thread is paused when the application goes to the background,
    until the textures are restored.
    Julien Jorge committed Sep 30, 2013
  2. The game is paused when the application goes to the background.

    bear::engine::game_local_client can now be paused and woke up.
    When it goes to sleep, the level is paused and the music muted.
    
    The game goes to sleep when the application goes to the background.
    It is detected via SDL events, handled in the new class
    android_system_event_manager, which implements base_system_event_manager.
    
    The game instance creates the event manager during its initialization.
    Julien Jorge committed Sep 30, 2013
Commits on Sep 29, 2013
  1. The view is set when the window is created.

    Julien Jorge committed Sep 29, 2013
Commits on Sep 28, 2013
  1. Merge branch 'master' of github.com:j-jorge/bear into android-render-…

    …thread
    Julien Jorge committed Sep 28, 2013
  2. Finalisation of the flag allowing to reset an animation with an actio…

    …n, or not.
    
    The option is available in the mark properties frame.
    
    Fix how its value was read in the model loader. It must be read before the index
    of the animation.
    
    The version of the editors is now 0.10.0.
    
    Fix the swap and copy functions of bear::engine::model_mark. Some members were
    not set.
    Julien Jorge committed Sep 28, 2013
  3. Adds the flag allowing to reset a mark animation with the action.

    The engine reads the flag from the model file but the model files are not
    produced with this flag yet.
    Julien Jorge committed Sep 28, 2013
  4. Move the condition to reset a mark animation inside a method of model…

    …_mark.
    Julien Jorge committed Sep 28, 2013
Commits on Sep 27, 2013
  1. The mouse detector toggles only on finger pressure.

    Julien Jorge committed Sep 27, 2013
Commits on Sep 26, 2013
  1. The mouse_detector reacts to any finger event.

    Julien Jorge committed Sep 26, 2013
  2. Merge branch 'master' of github.com:j-jorge/bear into android-render-…

    …thread
    Julien Jorge committed Sep 26, 2013
  3. forced_movemenmt_applicator uses handles on items.

    The items may be killed before the application of the movement.
    Julien Jorge committed Sep 26, 2013
  4. Add missing colon.

    Julien Jorge committed Sep 26, 2013
  5. Merge branch 'master' of github.com:j-jorge/bear into android-render-…

    …thread
    Julien Jorge committed Sep 26, 2013
Commits on Sep 25, 2013
  1. Adds changes lost when migrating to GitHub.

    The processing of the spritepos files builds the name of the sprite from the
    part before the colon.
    Julien Jorge committed Sep 25, 2013
  2. Automatically sets the tag to android on Android builds.

    Julien Jorge committed Sep 25, 2013
  3. Sets the port of the stats server to 80.

    Julien Jorge committed Sep 25, 2013
  4. Merge branch 'master' of github.com:j-jorge/bear into android-render-…

    …thread
    Julien Jorge committed Sep 25, 2013