CSFML - C binding of the Simple and Fast Multimedia Library

CSFML 3.0.0

- Main Page
- Classes
- Files

- File List
- File Members

Loading...
Searching...
No Matches
RenderStates.h
Go to the documentation of this file.
1
2//
3// SFML - Simple and Fast Multimedia Library
4// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
5//
6// This software is provided 'as-is', without any express or implied warranty.
7// In no event will the authors be held liable for any damages arising from the use of this software.
8//
9// Permission is granted to anyone to use this software for any purpose,
10// including commercial applications, and to alter it and redistribute it freely,
11// subject to the following restrictions:
12//
13// 1. The origin of this software must not be misrepresented;
14// you must not claim that you wrote the original software.
15// If you use this software in a product, an acknowledgment
16// in the product documentation would be appreciated but is not required.
17//
18// 2. Altered source versions must be plainly marked as such,
19// and must not be misrepresented as being the original software.
20//
21// 3. This notice may not be removed or altered from any source distribution.
22//
24
25#pragma once
26
28// Headers
30#include <CSFML/Graphics/Export.h>
31
32#include <CSFML/Graphics/BlendMode.h>
33#include <CSFML/Graphics/CoordinateType.h>
34#include <CSFML/Graphics/StencilMode.h>
35#include <CSFML/Graphics/Transform.h>
36#include <CSFML/Graphics/Types.h>
37
38
43 typedef struct
44{
45 sfBlendMode blendMode;
46 sfStencilMode stencilMode;
47 sfTransform transform;
48 sfCoordinateType coordinateType;
49 const sfTexture* texture;
50 const sfShader* shader;
51} sfRenderStates;
52
57 CSFML_GRAPHICS_API const sfRenderStates sfRenderStates_default;
BlendMode.h
CoordinateType.h
sfCoordinateType
sfCoordinateType
Types of texture coordinates that can be used for rendering.
Definition CoordinateType.h:32
Export.h
CSFML_GRAPHICS_API
#define CSFML_GRAPHICS_API
Definition Graphics/Export.h:42
Types.h
sfShader
struct sfShader sfShader
Definition Graphics/Types.h:32
sfTexture
struct sfTexture sfTexture
Definition Graphics/Types.h:39
sfRenderStates_default
const sfRenderStates sfRenderStates_default
Define the default values for a RenderState.
Definition RenderStates.h:57
StencilMode.h
Transform.h
sfBlendMode
Blending mode for drawing.
Definition BlendMode.h:71
sfRenderStates
Define the states used for drawing to a RenderTarget.
Definition RenderStates.h:44
sfRenderStates::coordinateType
sfCoordinateType coordinateType
Texture coordinate type.
Definition RenderStates.h:48
sfRenderStates::texture
const sfTexture * texture
Texture.
Definition RenderStates.h:49
sfRenderStates::transform
sfTransform transform
Transform.
Definition RenderStates.h:47
sfRenderStates::stencilMode
sfStencilMode stencilMode
Stencil mode.
Definition RenderStates.h:46
sfRenderStates::shader
const sfShader * shader
Shader.
Definition RenderStates.h:50
sfRenderStates::blendMode
sfBlendMode blendMode
Blending mode.
Definition RenderStates.h:45
sfStencilMode
Stencil modes for drawing.
Definition StencilMode.h:84
sfTransform
Encapsulate a 3x3 transform matrix.
Definition Transform.h:42