2019-12-12 17:32:41 +01:00
|
|
|
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
2021-08-27 17:55:04 +02:00
|
|
|
#ifndef IRR_C_ATTRIBUTES_H_INCLUDED
|
|
|
|
#define IRR_C_ATTRIBUTES_H_INCLUDED
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
|
|
|
|
#include "IAttributes.h"
|
|
|
|
#include "IAttribute.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace video
|
|
|
|
{
|
|
|
|
class ITexture;
|
|
|
|
class IVideoDriver;
|
|
|
|
}
|
|
|
|
namespace io
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
//! Implementation of the IAttributes interface
|
|
|
|
class CAttributes : public IAttributes
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
CAttributes(video::IVideoDriver* driver=0);
|
|
|
|
~CAttributes();
|
|
|
|
|
|
|
|
//! Returns amount of attributes in this collection of attributes.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual u32 getAttributeCount() const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns attribute name by index.
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const c8* getAttributeName(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns the type of an attribute
|
|
|
|
//! \param attributeName: Name for the attribute
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual E_ATTRIBUTE_TYPE getAttributeType(const c8* attributeName) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns attribute type by index.
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual E_ATTRIBUTE_TYPE getAttributeType(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns the type string of the attribute
|
|
|
|
//! \param attributeName: String for the attribute type
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const wchar_t* getAttributeTypeString(const c8* attributeName, const wchar_t* defaultNotFound = L"unknown") const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns the type string of the attribute by index.
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const wchar_t* getAttributeTypeString(s32 index, const wchar_t* defaultNotFound = L"unknown") const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns if an attribute with a name exists
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual bool existsAttribute(const c8* attributeName) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns attribute index from name, -1 if not found
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual s32 findAttribute(const c8* attributeName) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Removes all attributes
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void clear() IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Reads attributes from a xml file.
|
|
|
|
//! \param readCurrentElementOnly: If set to true, reading only works if current element has the name 'attributes'.
|
|
|
|
//! IF set to false, the first appearing list attributes are read.
|
|
|
|
virtual bool read(io::IXMLReader* reader, bool readCurrentElementOnly=false,
|
2021-08-27 14:55:10 +02:00
|
|
|
const wchar_t* nonDefaultElementName = 0) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Write these attributes into a xml file
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual bool write(io::IXMLWriter* writer, bool writeXMLHeader=false, const wchar_t* nonDefaultElementName=0) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Integer Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as integer
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addInt(const c8* attributeName, s32 value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as integer value
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, s32 value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as integer value
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual s32 getAttributeAsInt(const c8* attributeName, irr::s32 defaultNotFound=0) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as integer value
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual s32 getAttributeAsInt(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as integer value
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, s32 value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Float Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as float
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addFloat(const c8* attributeName, f32 value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets a attribute as float value
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, f32 value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as float value
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual f32 getAttributeAsFloat(const c8* attributeName, irr::f32 defaultNotFound=0.f) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as float value
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual f32 getAttributeAsFloat(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as float value
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, f32 value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
String Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as string
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addString(const c8* attributeName, const c8* value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute value as string.
|
|
|
|
//! \param attributeName: Name for the attribute
|
|
|
|
//! \param value: Value for the attribute. Set this to 0 to delete the attribute
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const c8* value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as string.
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
|
|
|
//! or defaultNotFound if attribute is not set.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::stringc getAttributeAsString(const c8* attributeName, const core::stringc& defaultNotFound=core::stringc()) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as string.
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param target: Buffer where the string is copied to.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void getAttributeAsString(const c8* attributeName, c8* target) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns attribute value as string by index.
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::stringc getAttributeAsString(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute value as string.
|
|
|
|
//! \param attributeName: Name for the attribute
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const c8* value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
// wide strings
|
|
|
|
|
|
|
|
//! Adds an attribute as string
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addString(const c8* attributeName, const wchar_t* value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute value as string.
|
|
|
|
//! \param attributeName: Name for the attribute
|
|
|
|
//! \param value: Value for the attribute. Set this to 0 to delete the attribute
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const wchar_t* value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as string.
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
|
|
|
//! or defaultNotFound if attribute is not set.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::stringw getAttributeAsStringW(const c8* attributeName, const core::stringw& defaultNotFound = core::stringw()) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as string.
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param target: Buffer where the string is copied to.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void getAttributeAsStringW(const c8* attributeName, wchar_t* target) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns attribute value as string by index.
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::stringw getAttributeAsStringW(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute value as string.
|
|
|
|
//! \param attributeName: Name for the attribute
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const wchar_t* value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Binary Data Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as binary data
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addBinary(const c8* attributeName, void* data, s32 dataSizeInBytes) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as binary data
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, void* data, s32 dataSizeInBytes) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as binary data
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void getAttributeAsBinaryData(const c8* attributeName, void* outData, s32 maxSizeInBytes) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as binary data
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void getAttributeAsBinaryData(s32 index, void* outData, s32 maxSizeInBytes) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as binary data
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, void* data, s32 dataSizeInBytes) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Array Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as wide string array
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addArray(const c8* attributeName, const core::array<core::stringw>& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute value as a wide string array.
|
|
|
|
//! \param attributeName: Name for the attribute
|
|
|
|
//! \param value: Value for the attribute. Set this to 0 to delete the attribute
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::array<core::stringw>& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as an array of wide strings.
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
|
|
|
//! or defaultNotFound if attribute is not set.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::array<core::stringw> getAttributeAsArray(const c8* attributeName, const core::array<core::stringw>& defaultNotFound = core::array<core::stringw>()) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns attribute value as an array of wide strings by index.
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::array<core::stringw> getAttributeAsArray(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as an array of wide strings
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::array<core::stringw>& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Bool Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as bool
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addBool(const c8* attributeName, bool value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as boolean value
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, bool value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as boolean value
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual bool getAttributeAsBool(const c8* attributeName, bool defaultNotFound=false) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as boolean value
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual bool getAttributeAsBool(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as boolean value
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, bool value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Enumeration Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as enum
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addEnum(const c8* attributeName, const c8* enumValue, const c8* const* enumerationLiterals) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Adds an attribute as enum
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addEnum(const c8* attributeName, s32 enumValue, const c8* const* enumerationLiterals) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as enumeration
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const c8* enumValue, const c8* const* enumerationLiterals) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as enumeration
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const c8* getAttributeAsEnumeration(const c8* attributeName, const c8* defaultNotFound = 0) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as enumeration
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param enumerationLiteralsToUse: Use these enumeration literals to get the index value instead of the set ones.
|
|
|
|
//! This is useful when the attribute list maybe was read from an xml file, and only contains the enumeration string, but
|
|
|
|
//! no information about its index.
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual s32 getAttributeAsEnumeration(const c8* attributeName, const c8* const* enumerationLiteralsToUse, s32 defaultNotFound ) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as enumeration
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual s32 getAttributeAsEnumeration(s32 index, const c8* const* enumerationLiteralsToUse, s32 defaultNotFound) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as enumeration
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const c8* getAttributeAsEnumeration(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets the list of enumeration literals of an enumeration attribute
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void getAttributeEnumerationLiteralsOfEnumeration(const c8* attributeName, core::array<core::stringc>& outLiterals) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets the list of enumeration literals of an enumeration attribute
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void getAttributeEnumerationLiteralsOfEnumeration(s32 index, core::array<core::stringc>& outLiterals) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as enumeration
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const c8* enumValue, const c8* const* enumerationLiterals) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
SColor Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as color
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addColor(const c8* attributeName, video::SColor value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets a attribute as color
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, video::SColor color) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as color
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual video::SColor getAttributeAsColor(const c8* attributeName, const video::SColor& defaultNotFound = video::SColor(0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as color
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual video::SColor getAttributeAsColor(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as color
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, video::SColor color) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
SColorf Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as floating point color
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addColorf(const c8* attributeName, video::SColorf value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets a attribute as floating point color
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, video::SColorf color) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as floating point color
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual video::SColorf getAttributeAsColorf(const c8* attributeName, const video::SColorf& defaultNotFound = video::SColorf(0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as floating point color
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual video::SColorf getAttributeAsColorf(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as floating point color
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, video::SColorf color) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Vector3d Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as 3d vector
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addVector3d(const c8* attributeName, const core::vector3df& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets a attribute as 3d vector
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::vector3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as 3d vector
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::vector3df getAttributeAsVector3d(const c8* attributeName, const core::vector3df& defaultNotFound=core::vector3df(0,0,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as 3d vector
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::vector3df getAttributeAsVector3d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as vector
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::vector3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Vector2d Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as 2d vector
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addVector2d(const c8* attributeName, const core::vector2df& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets a attribute as 2d vector
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::vector2df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as 2d vector
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::vector2df getAttributeAsVector2d(const c8* attributeName, const core::vector2df& defaultNotFound=core::vector2df(0,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as 3d vector
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::vector2df getAttributeAsVector2d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as vector
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::vector2df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Position2d Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as 2d position
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addPosition2d(const c8* attributeName, const core::position2di& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets a attribute as 2d position
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::position2di& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as position
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::position2di getAttributeAsPosition2d(const c8* attributeName, const core::position2di& defaultNotFound=core::position2di(0,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as position
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::position2di getAttributeAsPosition2d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as 2d position
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::position2di& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Rectangle Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as rectangle
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addRect(const c8* attributeName, const core::rect<s32>& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as rectangle
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::rect<s32>& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as rectangle
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::rect<s32> getAttributeAsRect(const c8* attributeName, const core::rect<s32>& defaultNotFound = core::rect<s32>()) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as rectangle
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::rect<s32> getAttributeAsRect(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as rectangle
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::rect<s32>& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Dimension2d Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as dimension2d
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addDimension2d(const c8* attributeName, const core::dimension2d<u32>& value) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as dimension2d
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::dimension2d<u32>& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as dimension2d
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::dimension2d<u32> getAttributeAsDimension2d(const c8* attributeName, const core::dimension2d<u32>& defaultNotFound = core::dimension2d<u32>()) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as dimension2d
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::dimension2d<u32> getAttributeAsDimension2d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as dimension2d
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::dimension2d<u32>& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
matrix attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as matrix
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addMatrix(const c8* attributeName, const core::matrix4& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as matrix
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::matrix4& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a matrix4
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::matrix4 getAttributeAsMatrix(const c8* attributeName, const core::matrix4& defaultNotFound=core::matrix4()) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as matrix
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::matrix4 getAttributeAsMatrix(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as matrix
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::matrix4& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
quaternion attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as quaternion
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addQuaternion(const c8* attributeName, const core::quaternion& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as quaternion
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::quaternion& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a quaternion
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::quaternion getAttributeAsQuaternion(const c8* attributeName, const core::quaternion& defaultNotFound=core::quaternion(0,1,0, 0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as quaternion
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::quaternion getAttributeAsQuaternion(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as quaternion
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::quaternion& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
3d bounding box
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as axis aligned bounding box
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addBox3d(const c8* attributeName, const core::aabbox3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as axis aligned bounding box
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::aabbox3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a axis aligned bounding box
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::aabbox3df getAttributeAsBox3d(const c8* attributeName, const core::aabbox3df& defaultNotFound=core::aabbox3df(0,0,0, 0,0,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as axis aligned bounding box
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::aabbox3df getAttributeAsBox3d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as axis aligned bounding box
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::aabbox3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
plane
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as 3d plane
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addPlane3d(const c8* attributeName, const core::plane3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as 3d plane
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::plane3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a 3d plane
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::plane3df getAttributeAsPlane3d(const c8* attributeName, const core::plane3df& defaultNotFound=core::plane3df(0,0,0, 0,1,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as 3d plane
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::plane3df getAttributeAsPlane3d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as 3d plane
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::plane3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
3d triangle
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as 3d triangle
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addTriangle3d(const c8* attributeName, const core::triangle3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as 3d triangle
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::triangle3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a 3d triangle
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::triangle3df getAttributeAsTriangle3d(const c8* attributeName, const core::triangle3df& defaultNotFound = core::triangle3df(core::vector3df(0,0,0), core::vector3df(0,0,0), core::vector3df(0,0,0))) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as 3d triangle
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::triangle3df getAttributeAsTriangle3d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as 3d triangle
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::triangle3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
line 2d
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as a 2d line
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addLine2d(const c8* attributeName, const core::line2df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as a 2d line
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::line2df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a 2d line
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::line2df getAttributeAsLine2d(const c8* attributeName, const core::line2df& defaultNotFound = core::line2df(0,0, 0,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a 2d line
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::line2df getAttributeAsLine2d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as a 2d line
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::line2df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
line 3d
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as a 3d line
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addLine3d(const c8* attributeName, const core::line3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as a 3d line
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, const core::line3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a 3d line
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
|
|
|
//! \return Returns value of the attribute previously set by setAttribute()
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::line3df getAttributeAsLine3d(const c8* attributeName, const core::line3df& defaultNotFound=core::line3df(0,0,0, 0,0,0)) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as a 3d line
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::line3df getAttributeAsLine3d(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as a 3d line
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, const core::line3df& v) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Texture Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as texture reference
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addTexture(const c8* attributeName, video::ITexture* texture, const io::path& filename = "") IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as texture reference
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, video::ITexture* texture, const io::path& filename = "") IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as texture reference
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual video::ITexture* getAttributeAsTexture(const c8* attributeName, video::ITexture* defaultNotFound=0) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as texture reference
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual video::ITexture* getAttributeAsTexture(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as texture reference
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, video::ITexture* texture, const io::path& filename = "") IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
User Pointer Attribute
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! Adds an attribute as user pointer
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void addUserPointer(const c8* attributeName, void* userPointer) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as user pointer
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(const c8* attributeName, void* userPointer) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as user pointer
|
|
|
|
//! \param attributeName: Name of the attribute to get.
|
|
|
|
//! \param defaultNotFound Value returned when attributeName was not found
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void* getAttributeAsUserPointer(const c8* attributeName, void* defaultNotFound = 0) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Gets an attribute as user pointer
|
|
|
|
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void* getAttributeAsUserPointer(s32 index) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Sets an attribute as user pointer
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void setAttribute(s32 index, void* userPointer) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void readAttributeFromXML(const io::IXMLReader* reader);
|
|
|
|
|
|
|
|
core::array<IAttribute*> Attributes;
|
|
|
|
|
|
|
|
IAttribute* getAttributeP(const c8* attributeName) const;
|
|
|
|
|
|
|
|
video::IVideoDriver* Driver;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace io
|
|
|
|
} // end namespace irr
|
|
|
|
|
|
|
|
#endif
|