Added pixel format support Added MemoryStream Added Rect Added ResourceLoader Added generic loader (bmp, gif, hdr, jpg, jpeg, pic, png, psd, tga) Added PCX loader Added utility module initializer Fixed Config.hpp include Prerequesites.hpp now overwrites _WIN32_WINNT when defined version is less than requiered version Renderer's initialisation will implicitly initialize utility module Removed RENDERER_SINGLETON option Shaders are now resources
41 lines
824 B
C++
41 lines
824 B
C++
// Copyright (C) 2012 Jérôme Leclercq
|
|
// This file is part of the "Nazara Engine".
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_PIXELFORMAT_HPP
|
|
#define NAZARA_PIXELFORMAT_HPP
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
|
|
enum nzPixelFormat
|
|
{
|
|
nzPixelFormat_Undefined,
|
|
|
|
nzPixelFormat_B8G8R8,
|
|
nzPixelFormat_B8G8R8A8,
|
|
nzPixelFormat_DXT1,
|
|
nzPixelFormat_DXT3,
|
|
nzPixelFormat_DXT5,
|
|
nzPixelFormat_L8,
|
|
nzPixelFormat_L8A8,
|
|
nzPixelFormat_R4G4A4A4,
|
|
nzPixelFormat_R5G5A5A1,
|
|
nzPixelFormat_R8,
|
|
nzPixelFormat_R8G8,
|
|
nzPixelFormat_R8G8B8,
|
|
nzPixelFormat_R8G8B8A8
|
|
};
|
|
|
|
class NzPixelFormat
|
|
{
|
|
public:
|
|
static nzUInt8 GetBPP(nzPixelFormat format);
|
|
static bool IsCompressed(nzPixelFormat format);
|
|
};
|
|
|
|
#include <Nazara/Utility/PixelFormat.inl>
|
|
|
|
#endif // NAZARA_PIXELFORMAT_HPP
|