Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
tgatodxt.h
Go to the documentation of this file.
1
/*
2
** Command & Conquer Generals Zero Hour(tm)
3
** Copyright 2025 Electronic Arts Inc.
4
**
5
** This program is free software: you can redistribute it and/or modify
6
** it under the terms of the GNU General Public License as published by
7
** the Free Software Foundation, either version 3 of the License, or
8
** (at your option) any later version.
9
**
10
** This program is distributed in the hope that it will be useful,
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
** GNU General Public License for more details.
14
**
15
** You should have received a copy of the GNU General Public License
16
** along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/***********************************************************************************************
20
*** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
21
***********************************************************************************************
22
* *
23
* Project Name : CommandoEdit *
24
* *
25
* $Archive:: /Commando/Code/Tools/LevelEdit/TGAToDXT.h $*
26
* *
27
* Author:: Ian Leslie *
28
* *
29
* $Modtime:: 8/10/01 12:20p $*
30
* *
31
* $Revision:: 2 $*
32
* *
33
*---------------------------------------------------------------------------------------------*
34
* Functions: *
35
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
36
37
#ifndef TGATODXT_H
38
#define TGATODXT_H
39
40
#pragma message ("(gth) disabling TGAtoDXTClass temporarily so I can test the WW libs merge...")
41
#if 0
42
43
// Includes.
44
#include "
always.h
"
45
#include <windows.h>
46
#include <winbase.h>
47
48
49
// Class declerations.
50
class
TGAToDXTClass
51
{
52
public
:
53
TGAToDXTClass();
54
~TGAToDXTClass();
55
56
enum
ErrorCode
{
57
OK=0,
58
INVALID_BIT_DEPTH,
59
INVALID_SIZE,
60
INVALID_ASPECT_RATIO,
61
TGA_LOAD_ERROR,
62
COMPRESSION_ERROR
63
};
64
65
ErrorCode
Convert (
const
char
*inputfilename,
const
char
*outputfilename, FILETIME *writetimeptr,
bool
&redundantalpha,
bool
dontcheckalpha=
false
);
66
67
protected
:
68
void
Write (
const
char
*outputfilename);
69
70
FILETIME *WriteTimePtr;
// Time stamp of write time of DXT file.
71
unsigned
char
*Buffer;
// Staging buffer.
72
unsigned
BufferSize;
// Size of buffer in bytes.
73
unsigned
BufferCount;
// No. of bytes written to buffer.
74
75
friend
void
ReadDTXnFile (
DWORD
count,
void
*buffer);
76
friend
void
WriteDTXnFile (
DWORD
datacount,
void
*data);
77
};
78
79
80
// Externals.
81
extern
TGAToDXTClass _TGAToDXTConverter;
82
83
#endif
//0
84
85
#endif
ErrorCode
ErrorCode
Definition
Errors.h:58
always.h
DWORD
unsigned long DWORD
Definition
bittype.h:57
Code
Libraries
Source
WWVegas
WWLib
tgatodxt.h
Generated by
1.13.2