Skip to content

Commit 4fbef77

Browse files
author
Themperror
authored
Merge pull request #136 from Themperror/main_local
Add Texturing Chapter
2 parents 8ebb83a + 9444c89 commit 4fbef77

34 files changed

+401
-73
lines changed

docs/1-introduction/1-3-models/1-3-0-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ how coordinate systems work and how we can make use of them.
1414

1515
At the end we will also be able to roam around freely by using a camera.
1616

17-
[Loading Images](1-3-1-image-library.md)
17+
[Loading Images](1-3-1-texturing.md)
1818

1919
[Loading Meshes](1-3-2-loading-meshes.md)
2020

@@ -28,4 +28,4 @@ At the end we will also be able to roam around freely by using a camera.
2828

2929
[Camera](1-3-7-camera.md)
3030

31-
[Next chapter](./1-3-1-image-library.md)
31+
[Next chapter](./1-3-1-texturing.md)

docs/1-introduction/1-3-models/1-3-1-image-library.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/1-introduction/1-3-models/1-3-1-texturing.md

Lines changed: 184 additions & 0 deletions
Large diffs are not rendered by default.
51.7 KB
Loading
52.9 KB
Loading
115 KB
Loading

lib/FreeImage/include/FreeImage.h

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// Version information ------------------------------------------------------
3030

3131
#define FREEIMAGE_MAJOR_VERSION 3
32-
#define FREEIMAGE_MINOR_VERSION 17
32+
#define FREEIMAGE_MINOR_VERSION 18
3333
#define FREEIMAGE_RELEASE_SERIAL 0
3434

3535
// Compiler options ---------------------------------------------------------
@@ -75,7 +75,7 @@
7575
// or define any of FREEIMAGE_BIGENDIAN and FREEIMAGE_LITTLEENDIAN directly
7676
// to specify the desired endianness.
7777
#if (!defined(FREEIMAGE_BIGENDIAN) && !defined(FREEIMAGE_LITTLEENDIAN))
78-
#if (defined(BYTE_ORDER) && BYTE_ORDER==BIG_ENDIAN) || (defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN) || defined(__BIG_ENDIAN__)
78+
#if (defined(BYTE_ORDER) && BYTE_ORDER==BIG_ENDIAN) || (defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN) || (defined(__BYTE_ORDER) && __BYTE_ORDER==__ORDER_BIG_ENDIAN__) || defined(__BIG_ENDIAN__)
7979
#define FREEIMAGE_BIGENDIAN
8080
#endif // BYTE_ORDER
8181
#endif // !FREEIMAGE_[BIG|LITTLE]ENDIAN
@@ -731,6 +731,9 @@ typedef void (DLL_CALLCONV *FI_InitProc)(Plugin *plugin, int format_id);
731731
#define PSD_DEFAULT 0
732732
#define PSD_CMYK 1 //! reads tags for separated CMYK (default is conversion to RGB)
733733
#define PSD_LAB 2 //! reads tags for CIELab (default is conversion to RGB)
734+
#define PSD_NONE 0x0100 //! save without any compression
735+
#define PSD_RLE 0x0200 //! save using RLE compression
736+
#define PSD_PSB 0x2000 //! save using Adobe Large Document Format (use | to combine with other save flags)
734737
#define RAS_DEFAULT 0
735738
#define RAW_DEFAULT 0 //! load the file as linear RGB 48-bit
736739
#define RAW_PREVIEW 1 //! try to load the embedded JPEG preview with included Exif Data or default to RGB 24-bit
@@ -873,13 +876,19 @@ DLL_API void DLL_CALLCONV FreeImage_UnlockPage(FIMULTIBITMAP *bitmap, FIBITMAP *
873876
DLL_API BOOL DLL_CALLCONV FreeImage_MovePage(FIMULTIBITMAP *bitmap, int target, int source);
874877
DLL_API BOOL DLL_CALLCONV FreeImage_GetLockedPageNumbers(FIMULTIBITMAP *bitmap, int *pages, int *count);
875878

876-
// Filetype request routines ------------------------------------------------
879+
// File type request routines ------------------------------------------------
877880

878881
DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileType(const char *filename, int size FI_DEFAULT(0));
879882
DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileTypeU(const wchar_t *filename, int size FI_DEFAULT(0));
880883
DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileTypeFromHandle(FreeImageIO *io, fi_handle handle, int size FI_DEFAULT(0));
881884
DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileTypeFromMemory(FIMEMORY *stream, int size FI_DEFAULT(0));
882885

886+
DLL_API BOOL DLL_CALLCONV FreeImage_Validate(FREE_IMAGE_FORMAT fif, const char *filename);
887+
DLL_API BOOL DLL_CALLCONV FreeImage_ValidateU(FREE_IMAGE_FORMAT fif, const wchar_t *filename);
888+
DLL_API BOOL DLL_CALLCONV FreeImage_ValidateFromHandle(FREE_IMAGE_FORMAT fif, FreeImageIO *io, fi_handle handle);
889+
DLL_API BOOL DLL_CALLCONV FreeImage_ValidateFromMemory(FREE_IMAGE_FORMAT fif, FIMEMORY *stream);
890+
891+
883892
// Image type request routine -----------------------------------------------
884893

885894
DLL_API FREE_IMAGE_TYPE DLL_CALLCONV FreeImage_GetImageType(FIBITMAP *dib);
@@ -979,8 +988,11 @@ DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To24_555(BYTE *target, BYTE *so
979988
DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To24_565(BYTE *target, BYTE *source, int width_in_pixels);
980989
DLL_API void DLL_CALLCONV FreeImage_ConvertLine32To24(BYTE *target, BYTE *source, int width_in_pixels);
981990
DLL_API void DLL_CALLCONV FreeImage_ConvertLine1To32(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette);
991+
DLL_API void DLL_CALLCONV FreeImage_ConvertLine1To32MapTransparency(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette, BYTE *table, int transparent_pixels);
982992
DLL_API void DLL_CALLCONV FreeImage_ConvertLine4To32(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette);
993+
DLL_API void DLL_CALLCONV FreeImage_ConvertLine4To32MapTransparency(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette, BYTE *table, int transparent_pixels);
983994
DLL_API void DLL_CALLCONV FreeImage_ConvertLine8To32(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette);
995+
DLL_API void DLL_CALLCONV FreeImage_ConvertLine8To32MapTransparency(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette, BYTE *table, int transparent_pixels);
984996
DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To32_555(BYTE *target, BYTE *source, int width_in_pixels);
985997
DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To32_565(BYTE *target, BYTE *source, int width_in_pixels);
986998
DLL_API void DLL_CALLCONV FreeImage_ConvertLine24To32(BYTE *target, BYTE *source, int width_in_pixels);
@@ -1092,8 +1104,6 @@ DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformCombinedFromMemory(FIMEMORY* sr
10921104
// --------------------------------------------------------------------------
10931105

10941106
// rotation and flipping
1095-
/// @deprecated see FreeImage_Rotate
1096-
DLL_API FIBITMAP *DLL_CALLCONV FreeImage_RotateClassic(FIBITMAP *dib, double angle);
10971107
DLL_API FIBITMAP *DLL_CALLCONV FreeImage_Rotate(FIBITMAP *dib, double angle, const void *bkcolor FI_DEFAULT(NULL));
10981108
DLL_API FIBITMAP *DLL_CALLCONV FreeImage_RotateEx(FIBITMAP *dib, double angle, double x_shift, double y_shift, double x_origin, double y_origin, BOOL use_mask);
10991109
DLL_API BOOL DLL_CALLCONV FreeImage_FlipHorizontal(FIBITMAP *dib);

lib/FreeImage/lib/FreeImage.lib

-62.1 KB
Binary file not shown.

lib/FreeImage/lib/FreeImageLib.lib

19.7 MB
Binary file not shown.
73.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)