/** free the blob's memory */
	FORCEINLINE void Free()
	{
		if (Capacity() > 0) {
			RawFree(&Hdr());
			InitEmpty();
		}
	}
Example #2
0
 /** free the blob's memory */
 inline void Free()
 {
     if (Capacity() > 0) {
         RawFree(&Hdr());
         InitEmpty();
     }
 }
	/** copy constructor */
	FORCEINLINE ByteBlob(const ByteBlob &src)
	{
		InitEmpty();
		AppendRaw(src);
	}
	/** default constructor - initializes empty blob */
	FORCEINLINE ByteBlob() { InitEmpty(); }
Example #5
0
 /** copy constructor */
 inline ByteBlob(const ByteBlob &src)
 {
     InitEmpty();
     AppendRaw(src);
 }
Example #6
0
 /** default constructor - initializes empty blob */
 inline ByteBlob() {
     InitEmpty();
 }
Example #7
0
 void Texture2D::Init(const TextureDescription &desc)
 {
     InitEmpty(Target(), desc.internalFormat, desc.size, desc.format, desc.type, true);
 }
Example #8
0
 void Texture2D::Init(uint internalFormat, ivec2 size, uint format, uint type)
 {
     InitEmpty(Target(), internalFormat, size, format, type, true);
 }