Subversion Repositories Kolibri OS

Rev

Rev 1079 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1079 diamond 1
;;================================================================================================;;
3055 dunkaist 2
;;//// tga.inc //// (c) Nable, 2007-2008, (c) dunkaist, 2012 /////////////////////////////////////;;
1079 diamond 3
;;================================================================================================;;
4
;;                                                                                                ;;
5
;; This file is part of Common development libraries (Libs-Dev).                                  ;;
6
;;                                                                                                ;;
7
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
8
;; Lesser General Public License as published by the Free Software Foundation, either version 2.1 ;;
9
;; of the License, or (at your option) any later version.                                         ;;
10
;;                                                                                                ;;
11
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
12
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
13
;; Lesser General Public License for more details.                                                ;;
14
;;                                                                                                ;;
15
;; You should have received a copy of the GNU Lesser General Public License along with Libs-Dev.  ;;
16
;; If not, see .                                                    ;;
17
;;                                                                                                ;;
18
;;================================================================================================;;
19
 
3055 dunkaist 20
struct tga_colormap_spec
21
    first_entry_index   dw ?
22
    colormap_length     dw ?
23
    entry_size          db ?
1079 diamond 24
ends
25
 
3055 dunkaist 26
struct tga_image_spec
27
    x_origin        dw ?
28
    y_origin        dw ?
29
    width           dw ?
30
    height          dw ?
31
    depth           db ?
32
    descriptor      db ?
33
ends
34
 
35
struct tga_header
36
    id_length       db ?
37
    colormap_type   db ?
38
    image_type      db ?
39
    colormap_spec   tga_colormap_spec
40
    image_spec      tga_image_spec
41
ends
42
 
43
TGA_START_TOP   = 0x20
44
TGA_START_RIGHT = 0x10