Commit 0d8a27f7 authored by hybrid's avatar hybrid

Add SVN property and fix eol style

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4051 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 3e71d976
// Copyright (C) 2002-2011 Nikolaus Gebhardt // Copyright (C) 2002-2011 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine". // This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __E_ATTRIBUTES_H_INCLUDED__ #ifndef __E_ATTRIBUTES_H_INCLUDED__
#define __E_ATTRIBUTES_H_INCLUDED__ #define __E_ATTRIBUTES_H_INCLUDED__
namespace irr namespace irr
{ {
namespace io namespace io
{ {
//! Types of attributes available for IAttributes //! Types of attributes available for IAttributes
enum E_ATTRIBUTE_TYPE enum E_ATTRIBUTE_TYPE
{ {
// integer attribute // integer attribute
EAT_INT = 0, EAT_INT = 0,
// float attribute // float attribute
EAT_FLOAT, EAT_FLOAT,
// string attribute // string attribute
EAT_STRING, EAT_STRING,
// boolean attribute // boolean attribute
EAT_BOOL, EAT_BOOL,
// enumeration attribute // enumeration attribute
EAT_ENUM, EAT_ENUM,
// color attribute // color attribute
EAT_COLOR, EAT_COLOR,
// floating point color attribute // floating point color attribute
EAT_COLORF, EAT_COLORF,
// 3d vector attribute // 3d vector attribute
EAT_VECTOR3D, EAT_VECTOR3D,
// 2d position attribute // 2d position attribute
EAT_POSITION2D, EAT_POSITION2D,
// vector 2d attribute // vector 2d attribute
EAT_VECTOR2D, EAT_VECTOR2D,
// rectangle attribute // rectangle attribute
EAT_RECT, EAT_RECT,
// matrix attribute // matrix attribute
EAT_MATRIX, EAT_MATRIX,
// quaternion attribute // quaternion attribute
EAT_QUATERNION, EAT_QUATERNION,
// 3d bounding box // 3d bounding box
EAT_BBOX, EAT_BBOX,
// plane // plane
EAT_PLANE, EAT_PLANE,
// 3d triangle // 3d triangle
EAT_TRIANGLE3D, EAT_TRIANGLE3D,
// line 2d // line 2d
EAT_LINE2D, EAT_LINE2D,
// line 3d // line 3d
EAT_LINE3D, EAT_LINE3D,
// array of stringws attribute // array of stringws attribute
EAT_STRINGWARRAY, EAT_STRINGWARRAY,
// array of float // array of float
EAT_FLOATARRAY, EAT_FLOATARRAY,
// array of int // array of int
EAT_INTARRAY, EAT_INTARRAY,
// binary data attribute // binary data attribute
EAT_BINARY, EAT_BINARY,
// texture reference attribute // texture reference attribute
EAT_TEXTURE, EAT_TEXTURE,
// user pointer void* // user pointer void*
EAT_USER_POINTER, EAT_USER_POINTER,
// dimension attribute // dimension attribute
EAT_DIMENSION2D, EAT_DIMENSION2D,
// known attribute type count // known attribute type count
EAT_COUNT, EAT_COUNT,
// unknown attribute // unknown attribute
EAT_UNKNOWN EAT_UNKNOWN
}; };
} // end namespace io } // end namespace io
} // end namespace irr } // end namespace irr
#endif #endif
// Copyright (C) 2002-2011 Nikolaus Gebhardt // Copyright (C) 2002-2011 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine". // This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __E_PRIMITIVE_TYPES_H_INCLUDED__ #ifndef __E_PRIMITIVE_TYPES_H_INCLUDED__
#define __E_PRIMITIVE_TYPES_H_INCLUDED__ #define __E_PRIMITIVE_TYPES_H_INCLUDED__
namespace irr namespace irr
{ {
namespace scene namespace scene
{ {
//! Enumeration for all primitive types there are. //! Enumeration for all primitive types there are.
enum E_PRIMITIVE_TYPE enum E_PRIMITIVE_TYPE
{ {
//! All vertices are non-connected points. //! All vertices are non-connected points.
EPT_POINTS=0, EPT_POINTS=0,
//! All vertices form a single connected line. //! All vertices form a single connected line.
EPT_LINE_STRIP, EPT_LINE_STRIP,
//! Just as LINE_STRIP, but the last and the first vertex is also connected. //! Just as LINE_STRIP, but the last and the first vertex is also connected.
EPT_LINE_LOOP, EPT_LINE_LOOP,
//! Every two vertices are connected creating n/2 lines. //! Every two vertices are connected creating n/2 lines.
EPT_LINES, EPT_LINES,
//! After the first two vertices each vertex defines a new triangle. //! After the first two vertices each vertex defines a new triangle.
//! Always the two last and the new one form a new triangle. //! Always the two last and the new one form a new triangle.
EPT_TRIANGLE_STRIP, EPT_TRIANGLE_STRIP,
//! After the first two vertices each vertex defines a new triangle. //! After the first two vertices each vertex defines a new triangle.
//! All around the common first vertex. //! All around the common first vertex.
EPT_TRIANGLE_FAN, EPT_TRIANGLE_FAN,
//! Explicitly set all vertices for each triangle. //! Explicitly set all vertices for each triangle.
EPT_TRIANGLES, EPT_TRIANGLES,
//! After the first two vertices each further tw vetices create a quad with the preceding two. //! After the first two vertices each further tw vetices create a quad with the preceding two.
EPT_QUAD_STRIP, EPT_QUAD_STRIP,
//! Every four vertices create a quad. //! Every four vertices create a quad.
EPT_QUADS, EPT_QUADS,
//! Just as LINE_LOOP, but filled. //! Just as LINE_LOOP, but filled.
EPT_POLYGON, EPT_POLYGON,
//! The single vertices are expanded to quad billboards on the GPU. //! The single vertices are expanded to quad billboards on the GPU.
EPT_POINT_SPRITES EPT_POINT_SPRITES
}; };
} // end namespace scene } // end namespace scene
} // end namespace irr } // end namespace irr
#endif #endif
#ifndef __E_SHADER_TYPES_H_INCLUDED__ #ifndef __E_SHADER_TYPES_H_INCLUDED__
#define __E_SHADER_TYPES_H_INCLUDED__ #define __E_SHADER_TYPES_H_INCLUDED__
#include "irrTypes.h" #include "irrTypes.h"
namespace irr namespace irr
{ {
namespace video namespace video
{ {
//! Compile target enumeration for the addHighLevelShaderMaterial() method. //! Compile target enumeration for the addHighLevelShaderMaterial() method.
enum E_VERTEX_SHADER_TYPE enum E_VERTEX_SHADER_TYPE
{ {
EVST_VS_1_1 = 0, EVST_VS_1_1 = 0,
EVST_VS_2_0, EVST_VS_2_0,
EVST_VS_2_a, EVST_VS_2_a,
EVST_VS_3_0, EVST_VS_3_0,
EVST_VS_4_0, EVST_VS_4_0,
EVST_VS_4_1, EVST_VS_4_1,
EVST_VS_5_0, EVST_VS_5_0,
//! This is not a type, but a value indicating how much types there are. //! This is not a type, but a value indicating how much types there are.
EVST_COUNT EVST_COUNT
}; };
//! Names for all vertex shader types, each entry corresponds to a E_VERTEX_SHADER_TYPE entry. //! Names for all vertex shader types, each entry corresponds to a E_VERTEX_SHADER_TYPE entry.
const c8* const VERTEX_SHADER_TYPE_NAMES[] = { const c8* const VERTEX_SHADER_TYPE_NAMES[] = {
"vs_1_1", "vs_1_1",
"vs_2_0", "vs_2_0",
"vs_2_a", "vs_2_a",
"vs_3_0", "vs_3_0",
"vs_4_0", "vs_4_0",
"vs_4_1", "vs_4_1",
"vs_5_0", "vs_5_0",
0 }; 0 };
//! Compile target enumeration for the addHighLevelShaderMaterial() method. //! Compile target enumeration for the addHighLevelShaderMaterial() method.
enum E_PIXEL_SHADER_TYPE enum E_PIXEL_SHADER_TYPE
{ {
EPST_PS_1_1 = 0, EPST_PS_1_1 = 0,
EPST_PS_1_2, EPST_PS_1_2,
EPST_PS_1_3, EPST_PS_1_3,
EPST_PS_1_4, EPST_PS_1_4,
EPST_PS_2_0, EPST_PS_2_0,
EPST_PS_2_a, EPST_PS_2_a,
EPST_PS_2_b, EPST_PS_2_b,
EPST_PS_3_0, EPST_PS_3_0,
EPST_PS_4_0, EPST_PS_4_0,
EPST_PS_4_1, EPST_PS_4_1,
EPST_PS_5_0, EPST_PS_5_0,
//! This is not a type, but a value indicating how much types there are. //! This is not a type, but a value indicating how much types there are.
EPST_COUNT EPST_COUNT
}; };
//! Names for all pixel shader types, each entry corresponds to a E_PIXEL_SHADER_TYPE entry. //! Names for all pixel shader types, each entry corresponds to a E_PIXEL_SHADER_TYPE entry.
const c8* const PIXEL_SHADER_TYPE_NAMES[] = { const c8* const PIXEL_SHADER_TYPE_NAMES[] = {
"ps_1_1", "ps_1_1",
"ps_1_2", "ps_1_2",
"ps_1_3", "ps_1_3",
"ps_1_4", "ps_1_4",
"ps_2_0", "ps_2_0",
"ps_2_a", "ps_2_a",
"ps_2_b", "ps_2_b",
"ps_3_0", "ps_3_0",
"ps_4_0", "ps_4_0",
"ps_4_1", "ps_4_1",
"ps_5_0", "ps_5_0",
0 }; 0 };
//! Enum for supported geometry shader types //! Enum for supported geometry shader types
enum E_GEOMETRY_SHADER_TYPE enum E_GEOMETRY_SHADER_TYPE
{ {
EGST_GS_4_0 = 0, EGST_GS_4_0 = 0,
//! This is not a type, but a value indicating how much types there are. //! This is not a type, but a value indicating how much types there are.
EGST_COUNT EGST_COUNT
}; };
//! String names for supported geometry shader types //! String names for supported geometry shader types
const c8* const GEOMETRY_SHADER_TYPE_NAMES[] = { const c8* const GEOMETRY_SHADER_TYPE_NAMES[] = {
"gs_4_0", "gs_4_0",
0 }; 0 };
} // end namespace video } // end namespace video
} // end namespace irr } // end namespace irr
#endif // __E_SHADER_TYPES_H_INCLUDED__ #endif // __E_SHADER_TYPES_H_INCLUDED__
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment