Sha256: c319f61f475d3e7f14603035d5322238c6ed830ed3eb9276b0c6fe5ea4a5673a
Contents?: true
Size: 618 Bytes
Versions: 21
Compression:
Stored size: 618 Bytes
Contents
#pragma once #include <opengl.h> #include <string> #include <vector> #include <glm/glm.hpp> #include <opc_client.h> namespace Pixlib { struct LedInfo { // Position glm::vec3 position; // TexCoords glm::vec3 texture_coordinates; }; class FadeCandy { public: FadeCandy(const std::string& hostname, unsigned int per_size); const std::vector<LedInfo>& getLeds(); glm::vec2 textureSize(); void update(); void clear(); uint8_t* getData(); private: void finalize(); std::vector<LedInfo> leds; std::vector<uint8_t> framebuffer; OPCClient opc_client; }; }
Version data entries
21 entries across 21 versions & 1 rubygems