VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlTextureUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 
13 #include <string>
14 
15 namespace makVrv
16 {
18  {
19  public:
21  DtGlTextureUtils() = delete;
23  virtual ~DtGlTextureUtils() = delete;
25  DtGlTextureUtils(const DtGlTextureUtils&) = delete;
27  DtGlTextureUtils& operator=(const DtGlTextureUtils&) = delete;
28  public:
30  static std::string textureName(unsigned int id);
31 
33  static int textureSize(unsigned int id);
34 
36  static int width(unsigned int id);
37 
39  static int height(unsigned int id);
40 
42  static int internalFormat(unsigned int id);
43 
45  static int numMipMaps(unsigned int id);
46 
49  static int numComponents(unsigned int pixelFormat);
50 
52  static bool isCompressedFormat(unsigned int internalFormat);
53 
55  static int sizeInBytesOfCompressedTextureWithMipMaps(int internalFormat, int startMipMapWidth, int startMipMapHeight);
56 
58  static int sizeOfMipMap(int internalFormat, int width, int height);
59 
61  static const char* formatToString(int format);
62 
64  static void computeCompressedSize(int internalFormat, int width, int height, int depth, int& blockSize, int& size);
65  };
66 }
Dll export defines.
voidpf void uLong size
Definition: ioapi.h:39
Definition: DtGlTextureUtils.h:17
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)