Fixed compile errors with sfRenderWindow and sfImage in CSFML

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1004 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-01-30 14:58:43 +00:00
parent c3687b4018
commit f044357031
47 changed files with 398 additions and 391 deletions

View file

@ -29,13 +29,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/Glyph.h>
////////////////////////////////////////////////////////////
/// sfFont is the low-level class for loading and
/// manipulating character fonts (see sfString)
////////////////////////////////////////////////////////////
typedef struct sfFont sfFont;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////

View file

@ -31,16 +31,7 @@
#include <SFML/Config.h>
#include <SFML/Graphics/Color.h>
#include <SFML/Graphics/Rect.h>
typedef struct sfRenderWindow sfRenderWindow;
////////////////////////////////////////////////////////////
/// sfImage is the low-level class for loading and
/// manipulating images
////////////////////////////////////////////////////////////
typedef struct sfImage sfImage;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////

View file

@ -29,13 +29,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Config.h>
#include <SFML/Graphics/Image.h>
////////////////////////////////////////////////////////////
/// PostFX is used to apply a post effect to a window
////////////////////////////////////////////////////////////
typedef struct sfPostFX sfPostFX;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////

View file

@ -30,25 +30,12 @@
////////////////////////////////////////////////////////////
#include <SFML/Config.h>
#include <SFML/Graphics/Color.h>
#include <SFML/Graphics/Image.h>
#include <SFML/Graphics/PostFX.h>
#include <SFML/Graphics/Rect.h>
#include <SFML/Graphics/Shape.h>
#include <SFML/Graphics/Sprite.h>
#include <SFML/Graphics/String.h>
#include <SFML/Graphics/View.h>
#include <SFML/Graphics/Types.h>
#include <SFML/Window/Event.h>
#include <SFML/Window/Input.h>
#include <SFML/Window/VideoMode.h>
#include <SFML/Window/Window.h>
#include <SFML/Window/WindowHandle.h>
////////////////////////////////////////////////////////////
/// sfRenderWindow is a simple wrapper for sfWindow that
/// allows easy 2D rendering
////////////////////////////////////////////////////////////
typedef struct sfRenderWindow sfRenderWindow;
#include <SFML/Window/Window.h>
////////////////////////////////////////////////////////////

View file

@ -31,14 +31,7 @@
#include <SFML/Config.h>
#include <SFML/Graphics/BlendMode.h>
#include <SFML/Graphics/Color.h>
////////////////////////////////////////////////////////////
/// sfShape defines a drawable convex Shape ; it also defines
/// helper functions to draw simple Shapes like
/// lines, rectangles, circles, etc.
////////////////////////////////////////////////////////////
typedef struct sfShape sfShape;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////

View file

@ -31,15 +31,8 @@
#include <SFML/Config.h>
#include <SFML/Graphics/BlendMode.h>
#include <SFML/Graphics/Color.h>
#include <SFML/Graphics/Image.h>
#include <SFML/Graphics/Rect.h>
////////////////////////////////////////////////////////////
/// sfSprite defines a sprite : texture, transformations,
/// color, and draw on screen
////////////////////////////////////////////////////////////
typedef struct sfSprite sfSprite;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////

View file

@ -31,14 +31,8 @@
#include <SFML/Config.h>
#include <SFML/Graphics/BlendMode.h>
#include <SFML/Graphics/Color.h>
#include <SFML/Graphics/Font.h>
#include <SFML/Graphics/Rect.h>
////////////////////////////////////////////////////////////
/// sfString defines a graphical 2D text, that can be drawn on screen
////////////////////////////////////////////////////////////
typedef struct sfString sfString;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////

View file

@ -0,0 +1,39 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2008 Laurent Gomila (laurent.gom@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented;
// you must not claim that you wrote the original software.
// If you use this software in a product, an acknowledgment
// in the product documentation would be appreciated but is not required.
//
// 2. Altered source versions must be plainly marked as such,
// and must not be misrepresented as being the original software.
//
// 3. This notice may not be removed or altered from any source distribution.
//
////////////////////////////////////////////////////////////
#ifndef SFML_GRAPHICS_TYPES_H
#define SFML_GRAPHICS_TYPES_H
typedef struct sfFont sfFont;
typedef struct sfImage sfImage;
typedef struct sfPostFX sfPostFX;
typedef struct sfRenderWindow sfRenderWindow;
typedef struct sfShape sfShape;
typedef struct sfSprite sfSprite;
typedef struct sfString sfString;
typedef struct sfView sfView;
#endif // SFML_GRAPHICS_TYPES_H

View file

@ -30,13 +30,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Config.h>
#include <SFML/Graphics/Rect.h>
////////////////////////////////////////////////////////////
/// This class defines a view (position, size, etc.) ;
/// you can consider it as a 2D camera
////////////////////////////////////////////////////////////
typedef struct sfView sfView;
#include <SFML/Graphics/Types.h>
////////////////////////////////////////////////////////////