mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 19:24:09 +02:00
Add DevIL 1.7.8.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// ImageLib Sources
|
||||
// Copyright (C) 2000-2004 by Denton Woods (this file by thakis)
|
||||
// Last modified: 06/09/2004
|
||||
//
|
||||
// Filename: src-IL/include/il_hdr.h
|
||||
//
|
||||
// Description: Reads a RADIANCE High Dynamic Range Image
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef HDR_H
|
||||
#define HDR_H
|
||||
|
||||
#include "il_internal.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma pack(push, gif_struct, 1)
|
||||
#endif
|
||||
|
||||
typedef struct HDRHEADER
|
||||
{
|
||||
char Signature[10]; //must be "#?RADIANCE"
|
||||
ILuint Width, Height;
|
||||
} IL_PACKSTRUCT HDRHEADER;
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma pack(pop, gif_struct)
|
||||
#endif
|
||||
|
||||
// Internal functions
|
||||
ILboolean ilIsValidHdrF(ILHANDLE file);
|
||||
ILboolean iIsValidHdr();
|
||||
ILboolean iCheckHdr(HDRHEADER *Header);
|
||||
ILboolean ilLoadHdrF(ILHANDLE file);
|
||||
ILboolean iLoadHdrInternal();
|
||||
ILboolean iSaveHdrInternal();
|
||||
|
||||
void ReadScanline(ILubyte *scanline, ILuint w);
|
||||
|
||||
#endif//HDR_H
|
||||
Reference in New Issue
Block a user