mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-28 21:43:36 +00:00
19 lines
401 B
C++
19 lines
401 B
C++
#pragma once
|
|
#include <vector>
|
|
|
|
#include "Buffer.h"
|
|
|
|
class FloatBuffer : public Buffer {
|
|
private:
|
|
float* buffer;
|
|
|
|
public:
|
|
FloatBuffer(unsigned int capacity);
|
|
FloatBuffer(unsigned int capacity, float* backingArray);
|
|
virtual ~FloatBuffer();
|
|
|
|
FloatBuffer* flip();
|
|
FloatBuffer* put(float f);
|
|
void get(std::vector<float>* dst);
|
|
float* _getDataPointer() { return buffer; }
|
|
}; |