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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue