Skip to content

Commit

Permalink
Merge pull request #5235 from pchote/sdl2
Browse files Browse the repository at this point in the history
Remove SDL 1.2 and Cg support
  • Loading branch information
Mailaender committed May 2, 2014
2 parents 2b3f75d + 03c3c3a commit 26ae11c
Show file tree
Hide file tree
Showing 45 changed files with 198 additions and 2,697 deletions.
13 changes: 3 additions & 10 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ Windows
=======

* [.NET Framework >= 4.0 (Client Profile)](http://www.microsoft.com/en-us/download/details.aspx?id=17113)
* [Cg Toolkit >= 2.2 (optional, for Cg renderer)](https://developer.nvidia.com/cg-toolkit-download)
* [SDL 1.2 (included)](http://libsdl.org/download-1.2.php)
* [SDL 2 (optional)](http://www.libsdl.org/download-2.0.php)
* [SDL 2 (included)](http://www.libsdl.org/download-2.0.php)
* [FreeType (included)](http://gnuwin32.sourceforge.net/packages/freetype.htm)
* [zlib (included)](http://gnuwin32.sourceforge.net/packages/zlib.htm)
* [OpenAL (included)](http://kcat.strangesoft.net/openal.html)
Expand Down Expand Up @@ -37,12 +35,10 @@ Debian/Ubuntu
-------------

* mono-dmcs
* libmono-winforms2.0-cil
* libmono-winforms4.0-cil
* cli-common-dev (>= 2.10)
* freetype
* openal
* sdl
* nvidia-cg-toolkit (optional, for Cg renderer)

Slackware
---------
Expand All @@ -51,21 +47,18 @@ The following packages from slackbuilds.org are required, on 13.37 32-bit:
* libgdiplus
* mono
* openAL
* nvidia-cg-toolkit (optional, for Cg renderer)

openSUSE
--------

* mono-devel
* openal
* freetype2
* SDL
* cg (optional, for Cg renderer)
* SDL2

Gentoo
------

* dev-lang/mono
* dev-dotnet/libgdiplus
* media-libs/openal
* media-gfx/nvidia-cg-toolkit (optional, for Cg renderer)
27 changes: 4 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ INSTALL_PROGRAM = $(INSTALL) -m755
INSTALL_DATA = $(INSTALL) -m644

# program targets
CORE = rcg rgl rsdl rsdl2 rnull game utility irc
CORE = rsdl2 rnull game utility irc
TOOLS = editor tsbuild ralint

VERSION = $(shell git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null || echo git-`git rev-parse --short HEAD`)
Expand Down Expand Up @@ -94,37 +94,19 @@ PROGRAMS += irc
irc: $(irc_TARGET)

# Renderer dlls
rsdl_SRCS := $(shell find OpenRA.Renderer.SdlCommon/ -iname '*.cs')
rsdl_TARGET = OpenRA.Renderer.SdlCommon.dll
rsdl_KIND = library
rsdl_DEPS = $(game_TARGET)
rsdl_LIBS = $(COMMON_LIBS) thirdparty/Tao/Tao.OpenGl.dll thirdparty/Tao/Tao.Sdl.dll $(rsdl_DEPS)

rcg_SRCS := $(shell find OpenRA.Renderer.Cg/ -iname '*.cs')
rcg_TARGET = OpenRA.Renderer.Cg.dll
rcg_KIND = library
rcg_DEPS = $(game_TARGET) $(rsdl_TARGET)
rcg_LIBS = $(COMMON_LIBS) thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll $(rcg_DEPS)

rgl_SRCS := $(shell find OpenRA.Renderer.Gl/ -iname '*.cs')
rgl_TARGET = OpenRA.Renderer.Gl.dll
rgl_KIND = library
rgl_DEPS = $(game_TARGET) $(rsdl_TARGET)
rgl_LIBS = $(COMMON_LIBS) thirdparty/Tao/Tao.OpenGl.dll $(rgl_DEPS)

rsdl2_SRCS := $(shell find OpenRA.Renderer.Sdl2/ -iname '*.cs')
rsdl2_TARGET = OpenRA.Renderer.Sdl2.dll
rsdl2_KIND = library
rsdl2_DEPS = $(game_TARGET) $(rsdl_TARGET) $(rgl_TARGET)
rsdl2_DEPS = $(game_TARGET)
rsdl2_LIBS = $(COMMON_LIBS) thirdparty/Tao/Tao.OpenGl.dll thirdparty/SDL2-CS.dll $(rsdl2_DEPS)

rnull_SRCS := $(shell find OpenRA.Renderer.Null/ -iname '*.cs')
rnull_TARGET = OpenRA.Renderer.Null.dll
rnull_KIND = library
rnull_DEPS = $(game_TARGET)
rnull_LIBS = $(COMMON_LIBS) $(rnull_DEPS)
PROGRAMS += rcg rgl rsdl2 rnull rsdl
renderers: $(rcg_TARGET) $(rgl_TARGET) $(rsdl2_TARGET) $(rnull_TARGET) $(rsdl_TARGET)
PROGRAMS += rsdl2 rnull
renderers: $(rsdl2_TARGET) $(rnull_TARGET)


##### Official Mods #####
Expand Down Expand Up @@ -323,7 +305,6 @@ install-core: default
@$(INSTALL_DATA) COPYING "$(DATA_INSTALL_DIR)/COPYING"

@$(CP_R) glsl "$(DATA_INSTALL_DIR)"
@$(CP_R) cg "$(DATA_INSTALL_DIR)"
@$(CP_R) lua "$(DATA_INSTALL_DIR)"
@$(CP) *.ttf "$(DATA_INSTALL_DIR)"
@$(CP) thirdparty/Tao/* "$(DATA_INSTALL_DIR)"
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Game/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ internal static void Initialize(Arguments args)
}

GlobalFileSystem.Mount("."); // Needed to access shaders
var renderers = new[] { Settings.Graphics.Renderer, "Sdl2", "Gl", "Cg", null };
var renderers = new[] { Settings.Graphics.Renderer, "Sdl2", null };
foreach (var r in renderers)
{
if (r == null)
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Game/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class DebugSettings

public class GraphicSettings
{
public string Renderer = "Gl";
public string Renderer = "Sdl2";
public WindowMode Mode = WindowMode.PseudoFullscreen;
public int2 FullscreenSize = new int2(0, 0);
public int2 WindowedSize = new int2(1024, 768);
Expand Down
73 changes: 0 additions & 73 deletions OpenRA.Renderer.Cg/GraphicsDevice.cs

This file was deleted.

114 changes: 0 additions & 114 deletions OpenRA.Renderer.Cg/OpenRA.Renderer.Cg.csproj

This file was deleted.

Loading

0 comments on commit 26ae11c

Please sign in to comment.