Renamed / moved / updated the SFML.Net examples (still in progress... having troubles with SVN)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1560 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
002902319c
commit
2d83514452
28 changed files with 103 additions and 121 deletions
|
@ -4,7 +4,7 @@ using SFML.Graphics;
|
|||
using SFML.Window;
|
||||
using Tao.OpenGl;
|
||||
|
||||
namespace sample_opengl
|
||||
namespace opengl
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace sample_opengl
|
|||
window.Resized += new EventHandler<SizeEventArgs>(OnResized);
|
||||
|
||||
// Create a sprite for the background
|
||||
Image backgroundImage = new Image("datas/opengl/background.jpg");
|
||||
Image backgroundImage = new Image("resources/background.jpg");
|
||||
Sprite background = new Sprite(backgroundImage);
|
||||
|
||||
// Create a text to display
|
||||
|
@ -34,7 +34,7 @@ namespace sample_opengl
|
|||
// We could directly use a sf::Image as an OpenGL texture (with its Bind() member function),
|
||||
// but here we want more control on it (generate mipmaps, ...) so we create a new one
|
||||
int texture = 0;
|
||||
using (Image image = new Image("datas/opengl/texture.jpg"))
|
||||
using (Image image = new Image("resources/texture.jpg"))
|
||||
{
|
||||
Gl.glGenTextures(1, out texture);
|
||||
Gl.glBindTexture(Gl.GL_TEXTURE_2D, texture);
|
||||
|
|
|
@ -7,10 +7,9 @@
|
|||
<ProjectGuid>{160AE11E-138A-4B77-9642-EA74F9A79B4D}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>sample_opengl</RootNamespace>
|
||||
<RootNamespace>opengl</RootNamespace>
|
||||
<AssemblyName>opengl</AssemblyName>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<StartupObject>opengl.Program</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
|
@ -21,7 +20,7 @@
|
|||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<OutputPath>.\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
BIN
dotnet/examples/opengl/resources/background.jpg
Normal file
BIN
dotnet/examples/opengl/resources/background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
BIN
dotnet/examples/opengl/resources/texture.jpg
Normal file
BIN
dotnet/examples/opengl/resources/texture.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Add table
Add a link
Reference in a new issue