Fixed missing includes and warnings under VS

Former-commit-id: c06756b62b616e7322aced01062966247bb7654f
This commit is contained in:
Lynix 2015-02-21 15:04:07 +01:00
parent ca88c5bae4
commit ee6ca790a5
23 changed files with 68 additions and 58 deletions

13
.gitignore vendored
View File

@ -3,6 +3,9 @@ examples/bin/*.exe
lib/libNazara*.a lib/libNazara*.a
lib/Nazara*.dll lib/Nazara*.dll
lib/Nazara*.so lib/Nazara*.so
SDK/lib/libNazaraSDK*.a
SDK/lib/NazaraSDK*.dll
SDK/lib/NazaraSDK*.so
# Codeblocks # Codeblocks
*.cbp *.cbp
@ -15,13 +18,23 @@ lib/Nazara*.so
# CodeLite # CodeLite
*.project *.project
# Visual Studio
*.filters
*.vcxproj
*.tlog
*.sln
*.vcxprojResolveAssemblyReference.cache
*.exp
# Compiled Object files # Compiled Object files
*.slo *.slo
*.lo *.lo
*.o *.o
*.obj
# Compiled Dynamic libraries # Compiled Dynamic libraries
*.so *.so
*.lib
# Compiled Static libraries # Compiled Static libraries
*.lai *.lai

View File

@ -148,7 +148,7 @@ inline NzColor NzColor::FromHSV(float hue, float saturation, float value)
if (NzNumberEquals(h, 6.f)) if (NzNumberEquals(h, 6.f))
h = 0; // hue must be < 1 h = 0; // hue must be < 1
int i = h; int i = static_cast<unsigned int>(h);
float v1 = value * (1.f - s); float v1 = value * (1.f - s);
float v2 = value * (1.f - s * (h - i)); float v2 = value * (1.f - s * (h - i));
float v3 = value * (1.f - s * (1.f - (h - i))); float v3 = value * (1.f - s * (1.f - (h - i)));

View File

@ -15,7 +15,8 @@
#if defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || (defined(__MIPS__) && defined(__MISPEB__)) || \ #if defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || (defined(__MIPS__) && defined(__MISPEB__)) || \
defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || defined(__sparc__) || defined(__hppa__) defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || defined(__sparc__) || defined(__hppa__)
#define NAZARA_BIG_ENDIAN #define NAZARA_BIG_ENDIAN
#elif defined(__i386__) || defined(__i386) || defined(__X86__) || defined (__x86_64) #elif defined(__i386__) || defined(__i386) || defined(__X86__) || defined (__x86_64) || defined(_M_I86) || \
defined(_M_IX86) || defined(_M_X64)
#define NAZARA_LITTLE_ENDIAN #define NAZARA_LITTLE_ENDIAN
#else #else
#error Failed to identify endianness, you must define either NAZARA_BIG_ENDIAN or NAZARA_LITTLE_ENDIAN #error Failed to identify endianness, you must define either NAZARA_BIG_ENDIAN or NAZARA_LITTLE_ENDIAN

View File

@ -40,14 +40,10 @@ class NAZARA_API NzModel : public NzResource, public NzSceneNode
virtual ~NzModel(); virtual ~NzModel();
void AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const override; void AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const override;
void AdvanceAnimation(float elapsedTime);
NzModel* Clone() const; NzModel* Clone() const;
NzModel* Create() const; NzModel* Create() const;
void EnableAnimation(bool animation);
NzAnimation* GetAnimation() const;
NzMaterial* GetMaterial(const NzString& subMeshName) const; NzMaterial* GetMaterial(const NzString& subMeshName) const;
NzMaterial* GetMaterial(unsigned int matIndex) const; NzMaterial* GetMaterial(unsigned int matIndex) const;
NzMaterial* GetMaterial(unsigned int skinIndex, const NzString& subMeshName) const; NzMaterial* GetMaterial(unsigned int skinIndex, const NzString& subMeshName) const;
@ -57,12 +53,7 @@ class NAZARA_API NzModel : public NzResource, public NzSceneNode
unsigned int GetSkinCount() const; unsigned int GetSkinCount() const;
NzMesh* GetMesh() const; NzMesh* GetMesh() const;
nzSceneNodeType GetSceneNodeType() const override; nzSceneNodeType GetSceneNodeType() const override;
NzSkeleton* GetSkeleton();
const NzSkeleton* GetSkeleton() const;
bool HasAnimation() const;
bool IsAnimationEnabled() const;
virtual bool IsAnimated() const; virtual bool IsAnimated() const;
bool IsDrawable() const; bool IsDrawable() const;

View File

@ -16,6 +16,7 @@
#include <Nazara/Graphics/ParticleRenderer.hpp> #include <Nazara/Graphics/ParticleRenderer.hpp>
#include <Nazara/Graphics/SceneNode.hpp> #include <Nazara/Graphics/SceneNode.hpp>
#include <Nazara/Math/BoundingVolume.hpp> #include <Nazara/Math/BoundingVolume.hpp>
#include <functional>
#include <memory> #include <memory>
#include <set> #include <set>
#include <vector> #include <vector>

View File

@ -23,7 +23,7 @@ class NAZARA_API NzSceneNode : public NzNode
public: public:
NzSceneNode(); NzSceneNode();
NzSceneNode(const NzSceneNode& sceneNode); NzSceneNode(const NzSceneNode& sceneNode);
NzSceneNode(NzSceneNode& sceneNode) = delete; NzSceneNode(NzSceneNode&& sceneNode) = delete;
virtual ~NzSceneNode(); virtual ~NzSceneNode();
virtual void AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const = 0; virtual void AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const = 0;

View File

@ -3,6 +3,7 @@
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <algorithm>
#include <cstring> #include <cstring>
#include <Nazara/Utility/Debug.hpp> #include <Nazara/Utility/Debug.hpp>

View File

@ -351,7 +351,7 @@ namespace
if (info.format & SF_FORMAT_VORBIS) if (info.format & SF_FORMAT_VORBIS)
sf_command(file, SFC_SET_SCALE_FLOAT_INT_READ, nullptr, SF_TRUE); sf_command(file, SFC_SET_SCALE_FLOAT_INT_READ, nullptr, SF_TRUE);
sf_count_t sampleCount = info.frames * info.channels; unsigned int sampleCount = static_cast<unsigned int>(info.frames * info.channels);
std::unique_ptr<nzInt16[]> samples(new nzInt16[sampleCount]); std::unique_ptr<nzInt16[]> samples(new nzInt16[sampleCount]);
if (sf_read_short(file, samples.get(), sampleCount) != sampleCount) if (sf_read_short(file, samples.get(), sampleCount) != sampleCount)
@ -364,14 +364,13 @@ namespace
if (parameters.forceMono && format != nzAudioFormat_Mono) if (parameters.forceMono && format != nzAudioFormat_Mono)
{ {
// Nous effectuons la conversion en mono dans le même buffer (il va de toute façon être copié) // Nous effectuons la conversion en mono dans le même buffer (il va de toute façon être copié)
NzMixToMono(monoSamples.get(), monoSamples.get(), info.channels, info.frames); NzMixToMono(samples.get(), samples.get(), static_cast<unsigned int>(info.channels), static_cast<unsigned int>(info.frames));
format = nzAudioFormat_Mono; format = nzAudioFormat_Mono;
samples = std::move(monoSamples); sampleCount = static_cast<unsigned int>(info.frames);
sampleCount = info.frames;
} }
if (!soundBuffer->Create(format, static_cast<unsigned int>(sampleCount), info.samplerate, samples.get())) if (!soundBuffer->Create(format, sampleCount, info.samplerate, samples.get()))
{ {
NazaraError("Failed to create sound buffer"); NazaraError("Failed to create sound buffer");
return false; return false;

View File

@ -733,7 +733,7 @@ bool NzFile::FillHash(NzAbstractHash* hash) const
unsigned int size; unsigned int size;
while (remainingSize > 0) while (remainingSize > 0)
{ {
size = std::min(remainingSize, static_cast<nzUInt64>(NAZARA_CORE_FILE_BUFFERSIZE)); size = static_cast<unsigned int>(std::min(remainingSize, static_cast<nzUInt64>(NAZARA_CORE_FILE_BUFFERSIZE)));
if (file.Read(&buffer[0], sizeof(char), size) != sizeof(char)*size) if (file.Read(&buffer[0], sizeof(char), size) != sizeof(char)*size)
{ {
NazaraError("Unable to read file"); NazaraError("Unable to read file");

View File

@ -9,6 +9,7 @@
#include <Nazara/Core/GuillotineBinPack.hpp> #include <Nazara/Core/GuillotineBinPack.hpp>
#include <Nazara/Core/Config.hpp> #include <Nazara/Core/Config.hpp>
#include <algorithm> #include <algorithm>
#include <cstdlib>
#include <cmath> #include <cmath>
#include <limits> #include <limits>
#include <Nazara/Core/Debug.hpp> #include <Nazara/Core/Debug.hpp>
@ -22,8 +23,8 @@ namespace
int ScoreBestLongSideFit(int width, int height, const NzRectui& freeRectSize) int ScoreBestLongSideFit(int width, int height, const NzRectui& freeRectSize)
{ {
int leftoverHoriz = std::abs(freeRectSize.width - width); int leftoverHoriz = std::abs(static_cast<int>(freeRectSize.width - width));
int leftoverVert = std::abs(freeRectSize.height - height); int leftoverVert = std::abs(static_cast<int>(freeRectSize.height - height));
int leftover = std::max(leftoverHoriz, leftoverVert); int leftover = std::max(leftoverHoriz, leftoverVert);
return leftover; return leftover;
@ -31,8 +32,8 @@ namespace
int ScoreBestShortSideFit(int width, int height, const NzRectui& freeRectSize) int ScoreBestShortSideFit(int width, int height, const NzRectui& freeRectSize)
{ {
int leftoverHoriz = std::abs(freeRectSize.width - width); int leftoverHoriz = std::abs(static_cast<int>(freeRectSize.width - width));
int leftoverVert = std::abs(freeRectSize.height - height); int leftoverVert = std::abs(static_cast<int>(freeRectSize.height - height));
int leftover = std::min(leftoverHoriz, leftoverVert); int leftover = std::min(leftoverHoriz, leftoverVert);
return leftover; return leftover;

View File

@ -4,6 +4,7 @@
#include <Nazara/Core/HardwareInfo.hpp> #include <Nazara/Core/HardwareInfo.hpp>
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <algorithm>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>

View File

@ -5,9 +5,9 @@
#include <Nazara/Core/HashDigest.hpp> #include <Nazara/Core/HashDigest.hpp>
#include <Nazara/Core/Config.hpp> #include <Nazara/Core/Config.hpp>
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <algorithm>
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include <utility>
#include <Nazara/Core/Debug.hpp> #include <Nazara/Core/Debug.hpp>
NzHashDigest::NzHashDigest() : NzHashDigest::NzHashDigest() :

View File

@ -91,7 +91,7 @@ bool NzParameterList::GetFloatParameter(const NzString& name, float* value) cons
return true; return true;
case nzParameterType_Integer: case nzParameterType_Integer:
*value = it->second.value.intVal; *value = static_cast<float>(it->second.value.intVal);
return true; return true;
case nzParameterType_String: case nzParameterType_String:
@ -99,7 +99,7 @@ bool NzParameterList::GetFloatParameter(const NzString& name, float* value) cons
double converted; double converted;
if (it->second.value.stringVal.ToDouble(&converted)) if (it->second.value.stringVal.ToDouble(&converted))
{ {
*value = converted; *value = static_cast<float>(converted);
return true; return true;
} }
@ -133,7 +133,7 @@ bool NzParameterList::GetIntegerParameter(const NzString& name, int* value) cons
return true; return true;
case nzParameterType_Float: case nzParameterType_Float:
*value = it->second.value.floatVal; *value = static_cast<int>(it->second.value.floatVal);
return true; return true;
case nzParameterType_Integer: case nzParameterType_Integer:
@ -147,7 +147,7 @@ bool NzParameterList::GetIntegerParameter(const NzString& name, int* value) cons
{ {
if (converted <= std::numeric_limits<int>::max() && converted >= std::numeric_limits<int>::min()) if (converted <= std::numeric_limits<int>::max() && converted >= std::numeric_limits<int>::min())
{ {
*value = converted; *value = static_cast<int>(converted);
return true; return true;
} }
} }

View File

@ -3129,7 +3129,7 @@ NzString NzString::SubStringFrom(char character, int startPos, bool fromLast, bo
else else
pos = Find(character, startPos, flags); pos = Find(character, startPos, flags);
if (pos == 0 and include) if (pos == 0 && include)
return *this; return *this;
else if (pos == npos) else if (pos == npos)
return NzString(); return NzString();

View File

@ -6,7 +6,7 @@
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <Nazara/Core/Log.hpp> #include <Nazara/Core/Log.hpp>
#include <Nazara/Utility/Config.hpp> #include <Nazara/Utility/Config.hpp>
#include <cstdio> #include <cctype>
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>
#include <Nazara/Graphics/Debug.hpp> #include <Nazara/Graphics/Debug.hpp>

View File

@ -81,12 +81,12 @@ void NzScene::Draw()
if (m_renderTechniqueRanking > 0) if (m_renderTechniqueRanking > 0)
{ {
m_renderTechnique.reset(NzRenderTechniques::GetByRanking(m_renderTechniqueRanking-1, &m_renderTechniqueRanking)); m_renderTechnique.reset(NzRenderTechniques::GetByRanking(m_renderTechniqueRanking-1, &m_renderTechniqueRanking));
NazaraError("Render technique \"" + oldName + "\" failed, falling back to \"" + m_renderTechnique->GetName() + '"'); NazaraError("Render technique \"" + oldName + "\" failed (" + NzString(e.what()) + "), falling back to \"" + m_renderTechnique->GetName() + '"');
} }
else else
{ {
NzErrorFlags errFlags(nzErrorFlag_ThrowException); NzErrorFlags errFlags(nzErrorFlag_ThrowException);
NazaraError("Render technique \"" + oldName + "\" failed and no fallback is available"); NazaraError("Render technique \"" + oldName + "\" failed (" + NzString(e.what()) + ") and no fallback is available");
} }
return; return;

View File

@ -294,7 +294,7 @@ void NzView::UpdateProjectionMatrix() const
if (!m_viewportUpdated) if (!m_viewportUpdated)
UpdateViewport(); UpdateViewport();
m_projectionMatrix.MakeOrtho(0.f, m_viewport.width, 0.f, m_viewport.height, m_zNear, m_zFar); m_projectionMatrix.MakeOrtho(0.f, static_cast<float>(m_viewport.width), 0.f, static_cast<float>(m_viewport.height), m_zNear, m_zFar);
} }
else else
m_projectionMatrix.MakeOrtho(0.f, m_size.x, 0.f, m_size.y, m_zNear, m_zFar); m_projectionMatrix.MakeOrtho(0.f, m_size.x, 0.f, m_size.y, m_zNear, m_zFar);

View File

@ -173,7 +173,7 @@ bool NzLuaInstance::CheckBoolean(int index) const
return false; return false;
} }
return lua_toboolean(m_state, index); return lua_toboolean(m_state, index) != 0;
} }
bool NzLuaInstance::CheckBoolean(int index, bool defValue) const bool NzLuaInstance::CheckBoolean(int index, bool defValue) const
@ -181,7 +181,7 @@ bool NzLuaInstance::CheckBoolean(int index, bool defValue) const
if (lua_isnoneornil(m_state, index)) if (lua_isnoneornil(m_state, index))
return defValue; return defValue;
return lua_toboolean(m_state, index); return lua_toboolean(m_state, index) != 0;
} }
long long NzLuaInstance::CheckInteger(int index) const long long NzLuaInstance::CheckInteger(int index) const
@ -257,7 +257,7 @@ bool NzLuaInstance::Compare(int index1, int index2, nzLuaComparison comparison)
} }
#endif #endif
return (lua_compare(m_state, index1, index2, s_comparisons[comparison]) == 1); return (lua_compare(m_state, index1, index2, s_comparisons[comparison]) != 0);
} }
void NzLuaInstance::Compute(nzLuaOperation operation) void NzLuaInstance::Compute(nzLuaOperation operation)
@ -476,7 +476,7 @@ nzLuaType NzLuaInstance::GetMetatable(const NzString& tname) const
bool NzLuaInstance::GetMetatable(int index) const bool NzLuaInstance::GetMetatable(int index) const
{ {
return lua_getmetatable(m_state, index) == 1; return lua_getmetatable(m_state, index) != 0;
} }
unsigned int NzLuaInstance::GetStackTop() const unsigned int NzLuaInstance::GetStackTop() const
@ -522,34 +522,34 @@ bool NzLuaInstance::IsOfType(int index, nzLuaType type) const
switch (type) switch (type)
{ {
case nzLuaType_Boolean: case nzLuaType_Boolean:
return lua_isboolean(m_state, index) == 1; return lua_isboolean(m_state, index) != 0;
case nzLuaType_Function: case nzLuaType_Function:
return lua_isfunction(m_state, index) == 1; return lua_isfunction(m_state, index) != 0;
case nzLuaType_LightUserdata: case nzLuaType_LightUserdata:
return lua_islightuserdata(m_state, index) == 1; return lua_islightuserdata(m_state, index) != 0;
case nzLuaType_Nil: case nzLuaType_Nil:
return lua_isnil(m_state, index) == 1; return lua_isnil(m_state, index) != 0;
case nzLuaType_None: case nzLuaType_None:
return lua_isnone(m_state, index) == 1; return lua_isnone(m_state, index) != 0;
case nzLuaType_Number: case nzLuaType_Number:
return lua_isnumber(m_state, index) == 1; return lua_isnumber(m_state, index) != 0;
case nzLuaType_String: case nzLuaType_String:
return lua_isstring(m_state, index) == 1; return lua_isstring(m_state, index) != 0;
case nzLuaType_Table: case nzLuaType_Table:
return lua_istable(m_state, index) == 1; return lua_istable(m_state, index) != 0;
case nzLuaType_Thread: case nzLuaType_Thread:
return lua_isthread(m_state, index) == 1; return lua_isthread(m_state, index) != 0;
case nzLuaType_Userdata: case nzLuaType_Userdata:
return lua_isuserdata(m_state, index) == 1; return lua_isuserdata(m_state, index) != 0;
} }
NazaraError("Lua type not handled (0x" + NzString::Number(type, 16) + ')'); NazaraError("Lua type not handled (0x" + NzString::Number(type, 16) + ')');
@ -569,7 +569,7 @@ bool NzLuaInstance::IsOfType(int index, const NzString& tname) const
bool NzLuaInstance::IsValid(int index) const bool NzLuaInstance::IsValid(int index) const
{ {
return !lua_isnoneornil(m_state, index); return lua_isnoneornil(m_state, index) == 0;
} }
unsigned int NzLuaInstance::Length(int index) const unsigned int NzLuaInstance::Length(int index) const
@ -584,17 +584,17 @@ void NzLuaInstance::MoveTo(NzLuaInstance* instance, int n)
bool NzLuaInstance::NewMetatable(const char* str) bool NzLuaInstance::NewMetatable(const char* str)
{ {
return luaL_newmetatable(m_state, str) == 1; return luaL_newmetatable(m_state, str) != 0;
} }
bool NzLuaInstance::NewMetatable(const NzString& str) bool NzLuaInstance::NewMetatable(const NzString& str)
{ {
return luaL_newmetatable(m_state, str.GetConstBuffer()); return luaL_newmetatable(m_state, str.GetConstBuffer()) != 0;
} }
bool NzLuaInstance::Next(int index) bool NzLuaInstance::Next(int index)
{ {
return lua_next(m_state, index) == 1; return lua_next(m_state, index) != 0;
} }
void NzLuaInstance::Pop(unsigned int n) void NzLuaInstance::Pop(unsigned int n)
@ -604,7 +604,7 @@ void NzLuaInstance::Pop(unsigned int n)
void NzLuaInstance::PushBoolean(bool value) void NzLuaInstance::PushBoolean(bool value)
{ {
lua_pushboolean(m_state, value); lua_pushboolean(m_state, (value) ? 1 : 0);
} }
void NzLuaInstance::PushCFunction(NzLuaCFunction func, int upvalueCount) void NzLuaInstance::PushCFunction(NzLuaCFunction func, int upvalueCount)
@ -750,7 +750,7 @@ void NzLuaInstance::SetTimeLimit(nzUInt32 timeLimit)
bool NzLuaInstance::ToBoolean(int index) const bool NzLuaInstance::ToBoolean(int index) const
{ {
return lua_toboolean(m_state, index); return lua_toboolean(m_state, index) != 0;
} }
long long NzLuaInstance::ToInteger(int index, bool* succeeded) const long long NzLuaInstance::ToInteger(int index, bool* succeeded) const
@ -759,7 +759,7 @@ long long NzLuaInstance::ToInteger(int index, bool* succeeded) const
long long result = lua_tointegerx(m_state, index, &success); long long result = lua_tointegerx(m_state, index, &success);
if (succeeded) if (succeeded)
*succeeded = (success == 1); *succeeded = (success != 0);
return result; return result;
} }
@ -770,7 +770,7 @@ double NzLuaInstance::ToNumber(int index, bool* succeeded) const
double result = lua_tonumberx(m_state, index, &success); double result = lua_tonumberx(m_state, index, &success);
if (succeeded) if (succeeded)
*succeeded = (success == 1); *succeeded = (success != 0);
return result; return result;
} }

View File

@ -92,7 +92,7 @@ NzUberShaderInstance* NzUberShaderPreprocessor::Get(const NzParameterList& param
// On construit l'instant // On construit l'instant
shaderIt = m_cache.emplace(flags, shader.Get()).first; shaderIt = m_cache.emplace(flags, shader.Get()).first;
} }
catch (const std::exception& e) catch (const std::exception&)
{ {
NzErrorFlags errFlags(nzErrorFlag_ThrowExceptionDisabled); NzErrorFlags errFlags(nzErrorFlag_ThrowExceptionDisabled);

View File

@ -212,12 +212,12 @@ namespace
bool HasKerning() const override bool HasKerning() const override
{ {
return FT_HAS_KERNING(m_face); return FT_HAS_KERNING(m_face) != 0;
} }
bool IsScalable() const override bool IsScalable() const override
{ {
return FT_IS_SCALABLE(m_face); return FT_IS_SCALABLE(m_face) != 0;
} }
bool Open() bool Open()

View File

@ -296,5 +296,5 @@ void NzSimpleTextDrawer::UpdateGlyphs() const
m_glyphs.push_back(glyph); m_glyphs.push_back(glyph);
} }
m_bounds.Set(std::floor(textBounds.x), std::floor(textBounds.y), std::ceil(textBounds.width), std::ceil(textBounds.height)); m_bounds.Set(NzRectf(std::floor(textBounds.x), std::floor(textBounds.y), std::ceil(textBounds.width), std::ceil(textBounds.height)));
} }

View File

@ -5,6 +5,7 @@
#include <Nazara/Utility/Win32/CursorImpl.hpp> #include <Nazara/Utility/Win32/CursorImpl.hpp>
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <Nazara/Utility/Image.hpp> #include <Nazara/Utility/Image.hpp>
#include <Nazara/Utility/PixelFormat.hpp>
#include <Nazara/Utility/Debug.hpp> #include <Nazara/Utility/Debug.hpp>
bool NzCursorImpl::Create(const NzImage& cursor, int hotSpotX, int hotSpotY) bool NzCursorImpl::Create(const NzImage& cursor, int hotSpotX, int hotSpotY)

View File

@ -4,6 +4,7 @@
#include <Nazara/Utility/Win32/IconImpl.hpp> #include <Nazara/Utility/Win32/IconImpl.hpp>
#include <Nazara/Utility/Image.hpp> #include <Nazara/Utility/Image.hpp>
#include <Nazara/Utility/PixelFormat.hpp>
#include <Nazara/Utility/Debug.hpp> #include <Nazara/Utility/Debug.hpp>
bool NzIconImpl::Create(const NzImage& icon) bool NzIconImpl::Create(const NzImage& icon)