Vertex declaration changes (#135)
* Add type to ComponentType conversion * Change type to ComponentType conversion * Change assert to condition, add check on particle mapper. * Change particle life type * Changes as requested * Fix Travis try 1 * Changes as requested * move IsSuitableForComponent to inl
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2017 Jérôme Leclercq
|
||||
// Copyright (C) 2017 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Utility module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
@@ -38,6 +38,8 @@ namespace Nz
|
||||
void EnableComponent(VertexComponent component, ComponentType type, std::size_t offset);
|
||||
|
||||
void GetComponent(VertexComponent component, bool* enabled, ComponentType* type, std::size_t* offset) const;
|
||||
bool HasComponent(VertexComponent component) const;
|
||||
template<typename T> bool HasComponentOfType(VertexComponent component) const;
|
||||
std::size_t GetStride() const;
|
||||
|
||||
void SetStride(std::size_t stride);
|
||||
|
||||
Reference in New Issue
Block a user