You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/osg/dxtctool.h
+72-18Lines changed: 72 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
// Current version: 1.00 BETA 1 (27/08/2002)
32
32
//
33
33
// Comment: Only works with DXTC mode supported by OpenGL.
34
-
// (currently: DXT1/DXT3/DXT5)
34
+
// (currently: DXT1/DXT3/DXT5/RGTC1/RGTC2)
35
35
//
36
36
// History: -
37
37
//
@@ -77,6 +77,8 @@ namespace dxtc_tool {
77
77
// C-like function wrappers
78
78
boolisDXTC(GLenum pixelFormat);
79
79
80
+
boolisRGTC(GLenum pixelFormat);
81
+
80
82
boolVerticalFlip(size_t Width, size_t Height, GLenum Format, void * pPixels);
81
83
82
84
boolisCompressedImageTranslucent(size_t Width, size_t Height, GLenum Format, void * pPixels);
@@ -108,13 +110,17 @@ class dxtc_pixels
108
110
inlineboolDXT1() const;
109
111
inlineboolDXT3() const;
110
112
inlineboolDXT5() const;
113
+
inlineboolRGTC1() const;
114
+
inlineboolRGTC2() const;
111
115
inlineboolOpenGLSize() const;
112
116
inlineboolSupportedFormat() const;
113
117
114
118
// Vertical flipping functions
115
119
voidVFlip_DXT1() const;
116
120
voidVFlip_DXT3() const;
117
121
voidVFlip_DXT5() const;
122
+
voidVFlip_RGTC1() const;
123
+
voidVFlip_RGTC2() const;
118
124
119
125
// Block vertical flipping functions
120
126
inlinevoidBVF_Color_H2(void * const pBlock) const; // V. flip one color block with its virtual height == 2
@@ -126,6 +132,7 @@ class dxtc_pixels
126
132
inlinevoidBVF_Alpha_DXT5_H2(void * const pBlock) const; // V. flip one alpha (DXT5) block with its virtual height == 2
127
133
inlinevoidBVF_Alpha_DXT5_H4(void * const pBlock) const; // V. flip one alpha (DXT5) block with its virtual height == 4
128
134
inlinevoidBVF_Alpha_DXT5(void * const pBlock1, void * const pBlock2) const; // V. flip and swap two alpha (DXT5) blocks, with their virtual height == 4
135
+
inlinevoidBVF_Color_RGTC2(void * const pBlock1, void * const pBlock2) const; // V. flip and swap two red-green (RGTC2) blocks, with their virtual height == 4
129
136
130
137
// Block localization functions
131
138
inlinevoid * GetBlock(size_t i, size_t j, size_t BlockSize) const;
0 commit comments