MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / CSurface

Class CSurface

physx/samples/sampleframework/framework/src/nv_dds.h:156–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 };
155
156 class CSurface
157 {
158 public:
159 CSurface();
160 CSurface(unsigned int w, unsigned int h, unsigned int d, unsigned int imgsize, const unsigned char *pixels);
161 CSurface(const CSurface &copy);
162 CSurface &operator= (const CSurface &rhs);
163 virtual ~CSurface();
164
165 operator unsigned char*() const;
166
167 virtual void create(unsigned int w, unsigned int h, unsigned int d, unsigned int imgsize, const unsigned char *pixels);
168 virtual void clear();
169
170 inline unsigned int get_width() const { return m_width; }
171 inline unsigned int get_height() const { return m_height; }
172 inline unsigned int get_depth() const { return m_depth; }
173 inline unsigned int get_size() const { return m_size; }
174
175 private:
176 unsigned int m_width;
177 unsigned int m_height;
178 unsigned int m_depth;
179 unsigned int m_size;
180
181 unsigned char *m_pixels;
182 };
183
184 class CTexture : public CSurface
185 {

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected