fixes for running on linux
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -30,4 +30,5 @@ cg.dll
|
|||||||
cgGL.dll
|
cgGL.dll
|
||||||
glfw.dll
|
glfw.dll
|
||||||
|
|
||||||
/OpenRa.Gl.dll
|
/OpenRa.Gl.dll
|
||||||
|
settings.ini
|
||||||
|
|||||||
@@ -343,8 +343,8 @@ namespace OpenRa
|
|||||||
desktopResolution.Height);
|
desktopResolution.Height);
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("user32")]
|
// [DllImport("user32")]
|
||||||
static extern int ShowCursor([MarshalAs(UnmanagedType.Bool)] bool visible);
|
// static extern int ShowCursor([MarshalAs(UnmanagedType.Bool)] bool visible);
|
||||||
|
|
||||||
public static void PreInit(Settings settings)
|
public static void PreInit(Settings settings)
|
||||||
{
|
{
|
||||||
@@ -376,7 +376,7 @@ namespace OpenRa
|
|||||||
|
|
||||||
Game.Initialize(Game.Settings.Map, renderer, new int2(resolution), Game.Settings.Player, controller);
|
Game.Initialize(Game.Settings.Map, renderer, new int2(resolution), Game.Settings.Player, controller);
|
||||||
|
|
||||||
ShowCursor(false);
|
// ShowCursor(false);
|
||||||
Game.ResetTimer();
|
Game.ResetTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,8 @@ namespace OpenRa.Graphics
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void DrawText(string text, int2 pos, Color c)
|
public void DrawText(string text, int2 pos, Color c)
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
using (new PerfSample("text"))
|
using (new PerfSample("text"))
|
||||||
{
|
{
|
||||||
Bitmap b = RenderTextToBitmap(text, fDebug, c);
|
Bitmap b = RenderTextToBitmap(text, fDebug, c);
|
||||||
@@ -166,7 +167,8 @@ namespace OpenRa.Graphics
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void DrawText2(string text, int2 pos, Color c)
|
public void DrawText2(string text, int2 pos, Color c)
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
using (new PerfSample("text"))
|
using (new PerfSample("text"))
|
||||||
{
|
{
|
||||||
Bitmap b = RenderTextToBitmap(text, fTitle, c);
|
Bitmap b = RenderTextToBitmap(text, fTitle, c);
|
||||||
|
|||||||
@@ -103,13 +103,17 @@ namespace OpenRa.GlRenderer
|
|||||||
Glfw.glfwGetWindowSize(out width, out height);
|
Glfw.glfwGetWindowSize(out width, out height);
|
||||||
windowSize = new Size( width, height );
|
windowSize = new Size( width, height );
|
||||||
|
|
||||||
cgContext = Cg.cgCreateContext();
|
cgContext = Cg.cgCreateContext();
|
||||||
|
|
||||||
Cg.cgSetErrorCallback( CgErrorCallback );
|
Cg.cgSetErrorCallback( CgErrorCallback );
|
||||||
|
|
||||||
CgGl.cgGLRegisterStates( cgContext );
|
CgGl.cgGLRegisterStates( cgContext );
|
||||||
CgGl.cgGLSetManageTextureParameters( cgContext, true );
|
CgGl.cgGLSetManageTextureParameters( cgContext, true );
|
||||||
vertexProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_VERTEX );
|
vertexProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_VERTEX );
|
||||||
fragmentProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_FRAGMENT );
|
fragmentProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_FRAGMENT );
|
||||||
|
|
||||||
|
Console.WriteLine("VP Profile: " + vertexProfile);
|
||||||
|
Console.WriteLine("FP Profile: " + fragmentProfile);
|
||||||
|
|
||||||
Gl.glEnableClientState( Gl.GL_VERTEX_ARRAY );
|
Gl.glEnableClientState( Gl.GL_VERTEX_ARRAY );
|
||||||
CheckGlError();
|
CheckGlError();
|
||||||
|
|||||||
4
thirdparty/Tao/Tao.OpenAl.dll.config
vendored
4
thirdparty/Tao/Tao.OpenAl.dll.config
vendored
@@ -1,11 +1,11 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<dllmap dll="OpenAL32.dll">
|
<dllmap dll="OpenAL32.dll">
|
||||||
<dllentry os="linux" dll="libopenal.so.0" />
|
<dllentry os="linux" dll="libopenal.so.1" />
|
||||||
<dllentry os="windows" dll="OpenAL32.dll" />
|
<dllentry os="windows" dll="OpenAL32.dll" />
|
||||||
<dllentry os="osx" dll="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
|
<dllentry os="osx" dll="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
|
||||||
</dllmap>
|
</dllmap>
|
||||||
<dllmap dll="alut.dll">
|
<dllmap dll="alut.dll">
|
||||||
<dllentry os="linux" dll="libalut.so.0" />
|
<dllentry os="linux" dll="libalut.so.1" />
|
||||||
<dllentry os="windows" dll="alut.dll" />
|
<dllentry os="windows" dll="alut.dll" />
|
||||||
<dllentry os="osx" dll="libalut.so.0" />
|
<dllentry os="osx" dll="libalut.so.0" />
|
||||||
</dllmap>
|
</dllmap>
|
||||||
|
|||||||
Reference in New Issue
Block a user