Skip to content

Instantly share code, notes, and snippets.

View SebastienLussier's full-sized avatar

Sebastien Lussier SebastienLussier

View GitHub Profile
@SebastienLussier
SebastienLussier / SDL2Window::initialize
Created November 5, 2013 04:24
Works on my HD3000 now... Not sure we need both checks... either of them will do in my case. The second one might be problematic as some drivers might report a GDI Generic but accelerated device that could run arx... #1 - // Verify that the msaa setting matches what was requested and #2 - // Avoid "GDI Generic" devices...
bool SDL2Window::initialize(const std::string & title, Vec2i size, bool fullscreen,
unsigned depth) {
ARX_UNUSED(depth); // TODO
arx_assert(!displayModes.empty());
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
BobJellys-Mac:build bobjelly$ make VERBOSE=1
/usr/local/bin/cmake -H/Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis -B/Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/build/CMakeFiles /Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f CMakeFiles/_arx_arxcrashreporter_common.dir/build.make CMakeFiles/_arx_arxcrashreporter_common.dir/depend
/usr/local/bin/cmake -DINPUT=/Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/src/core/Version.cpp.cmake -DOUTPUT=/Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/build/Version.cpp -DVERSION_FILE=/Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/VERSION -DGIT_DIR=/Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/.git -P /Users/bobjelly/.Trash/ArxLibertatis/ArxLibertatis/cmake/VersionScript.cmake
cd /Users/bobjelly/.Trash/ArxLibertatis/ArxLibert
<!--Variables attached by the crashed process-->
<Variables>
<Variable Name="Command line" Value=""/>
<Variable Name="Compiler name" Value="VC10"/>
<Variable Name="Compiler version" Value="1600"/>
<Variable Name="Boost version" Value="1_47"/>
<Variable Name="SDL version" Value="1215"/>
<Variable Name="OpenAL version" Value="1.1"/>
<Variable Name="FreeType version" Value="20404"/>
<Variable Name="Data files" Value="full"/>
sebastien@sebastien-VirtualBox:~/code/ArxLibertatis/build$ sudo gdb --batch -n -ex "set confirm off" -ex "set print frame-arguments all" -ex "set print static-members off" -ex "info threads" -ex "thread apply all bt full" ~/code/ArxLibertatis/build/arx 2387
[Thread debugging using libthread_db enabled]
__lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
136 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
Id Target Id Frame
* 1 Thread 0x7f8433372760 (LWP 2387) "arx" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
Thread 1 (Thread 0x7f8433372760 (LWP 2387)):
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
@SebastienLussier
SebastienLussier / gist:1983230
Created March 6, 2012 03:28
Dumb attempt at using OMP in ARX_PORTALS_Frustrum_RenderRoomTCullSoft()
void ARX_PORTALS_Frustrum_RenderRoomTCullSoft(long room_num,EERIE_FRUSTRUM_DATA * frustrums,long prec,long tim)
{
if (RoomDraw[room_num].count)
{
if(!portals->room[room_num].pVertexBuffer)
{
char tTxt[256];
sprintf(tTxt,"portals %ld - Zero Polys",room_num);
LogError<< tTxt<<" Error Portals";
return;
/*
===========================================================================
ARX FATALIS GPL Source Code
Copyright (C) 1999-2010 Arkane Studios SA, a ZeniMax Media company.
This file is part of the Arx Fatalis GPL Source Code ('Arx Fatalis Source Code').
Arx Fatalis Source Code is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
@SebastienLussier
SebastienLussier / gist:1104022
Created July 25, 2011 12:28
Filesystem error
1>------ Build started: Project: arx, Configuration: Debug Win32 ------
1> ub_arx.cpp
1> [1/148] Compiling PathFinder.cpp...
1> [2/148] Compiling PathFinderManager.cpp...
1> [3/148] Compiling Paths.cpp...
1> [4/148] Compiling Animation.cpp...
1> [5/148] Compiling AnimationRender.cpp...
1> [6/148] Compiling Cinematic.cpp...
1> [7/148] Compiling CinematicKeyframer.cpp...
1> [8/148] Compiling Intro.cpp...
@SebastienLussier
SebastienLussier / OGLVertexBuffer.cpp
Created June 23, 2011 00:33
OpenGL VertexBuffer code
/**
* @file OGLVertexBuffer.cpp
* @brief Vertex data buffer to be sent to the graphic card.
* @author Sébastien Lussier.
* @date 07/01/04.
*/
/*
* Copyright (C) 2004 Gamedesk
*
* This program is free software; you can redistribute it and/or
/**
* @file FTFontImporter.cpp
* @brief FreeType font importer for Gamedesk..
* @author Sébastien Lussier.
* @date 24/01/04.
*/
/*
* Copyright (C) 2004 Gamedesk
*
* This program is free software; you can redistribute it and/or
@SebastienLussier
SebastienLussier / renderer.h
Created February 8, 2011 03:32
Base renderer class
/**
* @file Renderer.h
* @brief Base renderer class and utilities.
* @author Sébastien Lussier.
* @date 14/12/02.
*/
/*
* Copyright (C) 2011 Gamedesk
*
* This program is free software; you can redistribute it and/or