|
|
|||
File indexing completed on 2026-06-02 08:58:13
0001 //////////////////////////////////////////////////////////// 0002 // 0003 // SFML - Simple and Fast Multimedia Library 0004 // Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org) 0005 // 0006 // This software is provided 'as-is', without any express or implied warranty. 0007 // In no event will the authors be held liable for any damages arising from the use of this software. 0008 // 0009 // Permission is granted to anyone to use this software for any purpose, 0010 // including commercial applications, and to alter it and redistribute it freely, 0011 // subject to the following restrictions: 0012 // 0013 // 1. The origin of this software must not be misrepresented; 0014 // you must not claim that you wrote the original software. 0015 // If you use this software in a product, an acknowledgment 0016 // in the product documentation would be appreciated but is not required. 0017 // 0018 // 2. Altered source versions must be plainly marked as such, 0019 // and must not be misrepresented as being the original software. 0020 // 0021 // 3. This notice may not be removed or altered from any source distribution. 0022 // 0023 //////////////////////////////////////////////////////////// 0024 0025 #ifndef SFML_PRIMITIVETYPE_HPP 0026 #define SFML_PRIMITIVETYPE_HPP 0027 0028 namespace sf 0029 { 0030 //////////////////////////////////////////////////////////// 0031 /// \ingroup graphics 0032 /// \brief Types of primitives that a sf::VertexArray can render 0033 /// 0034 /// Points and lines have no area, therefore their thickness 0035 /// will always be 1 pixel, regardless the current transform 0036 /// and view. 0037 /// 0038 //////////////////////////////////////////////////////////// 0039 enum PrimitiveType 0040 { 0041 Points, //!< List of individual points 0042 Lines, //!< List of individual lines 0043 LineStrip, //!< List of connected lines, a point uses the previous point to form a line 0044 Triangles, //!< List of individual triangles 0045 TriangleStrip, //!< List of connected triangles, a point uses the two previous points to form a triangle 0046 TriangleFan, //!< List of connected triangles, a point uses the common center and the previous point to form a triangle 0047 Quads, //!< List of individual quads (deprecated, don't work with OpenGL ES) 0048 0049 // Deprecated names 0050 LinesStrip = LineStrip, //!< \deprecated Use LineStrip instead 0051 TrianglesStrip = TriangleStrip, //!< \deprecated Use TriangleStrip instead 0052 TrianglesFan = TriangleFan //!< \deprecated Use TriangleFan instead 0053 }; 0054 0055 } // namespace sf 0056 0057 0058 #endif // SFML_PRIMITIVETYPE_HPP
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|