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

Version Path
pixo-0.4.5 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.4.4 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.4.3 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.4.2 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.4.1 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.4.0 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.3.2 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.3.1 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.3.0 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.6 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.5 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.4 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.3 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.2 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.1 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.2.0 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.1.4 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.1.3 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.1.2 ext/pixo/pixlib/include/pixlib/fade_candy.hpp
pixo-0.1.1 ext/pixo/pixlib/include/pixlib/fade_candy.hpp