26 Reserve(size_vert, size_norm, size_idx);
51 auto append = [&](
void *buf,
int len) {
52 if (off + len > maxlen)
53 throw eh +
"output buffer does not have enough memory";
54 memcpy(msg + off, buf, len);
79 for (
int i = 0; i < 16; ++i) {
93 if (nel <= 0) { sx = sy = 0;
return; }
95 sx = (
int) std::ceil(std::sqrt(nel));
97 if (rx > 0) sx += align - rx;
99 if (nel % sx > 0) sy += 1;
REveException Exception-type thrown by Eve classes.
std::vector< float > fNormalBuffer
void Reserve(int size_vert=0, int size_norm=0, int size_idx=0)
Reserve place for render data.
int Write(char *msg, int maxlen)
Write render data to binary buffer.
static void CalcTextureSize(int nel, int align, int &sx, int &sy)
Calculate texture dimensions to hold nel elements with given alignment on x axis.
std::vector< int > fIndexBuffer
std::vector< float > fVertexBuffer
void SetMatrix(const double *arr)
Set transformation matrix.
std::vector< float > fMatrix
Namespace for ROOT features in testing.