1%% 2%% e3d_image.hrl -- 3%% 4%% Handle images (2D) and different file formats. 5%% 6%% Copyright (c) 2001-2011 Dan Gudmundsson 7%% 8%% See the file "license.terms" for information on usage and redistribution 9%% of this file, and for a DISCLAIMER OF ALL WARRANTIES. 10%% 11%% $Id: e3d_image.hrl,v 1.4 2003/01/21 20:15:25 bjorng Exp $ 12%% 13 14-record(e3d_image, %% Currently supported formats: 15 {type = r8g8b8, %% [g8 (gray8), a8 (alpha8) (Ch:Size)+[s|f]=signed|float] 16 %% ex: r32g32b32s (rgb with 32 (signed) bits per channel) 17 bytes_pp = 3, %% bytes per pixel 18 alignment = 1, %% A = 1|2|4 Next row starts direct|even 2|even 4 19 order = lower_left, %% First pixel is in: 20 %% lower_left,lower_right,upper_left,upper_right] 21 width = 0, %% in pixels 22 height = 0, %% in pixels 23 image, %% binary 24 filename=none, %% Filename or none 25 name=[], %% Name of image 26 extra=[] %% {mipmaps,[{Img,W,H,Level}]} 27 %% {cubemaps, [#{dir=>neg_x, tx=>Img, mipmaps=>[]}]} 28 %% filter: {Min:[mipmap|linear|nearest],Max} wrap:{S:repeat|clamp,T} 29 }). 30 31