NzImage now handles mipmaps

Added NzRenderer::SetClearColor(const Color&)
Added describe comment for pixel formats
Fixed NzPixelFormat conversion for RGBA4 and RGB5A1 types
Fixed NzRenderer::Clear prototype
Renamed NzLock to NzLockGuard
ResourceLoader's loaders are now tested from newest to oldest
This commit is contained in:
Lynix
2012-05-30 18:10:17 +02:00
parent f39e2f7d36
commit b220e00c88
17 changed files with 591 additions and 221 deletions

View File

@@ -44,6 +44,7 @@ enum nzRendererClear
nzRendererClear_Stencil = 0x04
};
class NzColor;
class NzIndexBuffer;
class NzRenderTarget;
class NzShader;
@@ -57,7 +58,7 @@ class NAZARA_API NzRenderer
NzRenderer();
~NzRenderer();
void Clear(nzRendererClear flags);
void Clear(unsigned long flags = nzRendererClear_Color | nzRendererClear_Depth);
void DrawIndexedPrimitives(nzPrimitiveType primitive, unsigned int firstIndex, unsigned int indexCount);
void DrawPrimitives(nzPrimitiveType primitive, unsigned int firstVertex, unsigned int vertexCount);
@@ -69,6 +70,7 @@ class NAZARA_API NzRenderer
bool HasCapability(nzRendererCap capability) const;
bool Initialize();
void SetClearColor(const NzColor& color);
void SetClearColor(nzUInt8 r, nzUInt8 g, nzUInt8 b, nzUInt8 a = 255);
void SetClearDepth(double depth);
void SetClearStencil(unsigned int value);