Files
4jcraft/minecraft/java/include/java/FloatBuffer.h
T
MatthewBeshay 7ddfaeb59e refactor: remove arrayWithLength, replace with std::vector
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
2026-03-31 12:06:19 +11:00

18 lines
467 B
C++

#pragma once
#include "Buffer.h"
#include "../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
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; }
};