Cleaned up the decoder, weird failbit behaviour from gitline.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <experimental/filesystem>
|
||||
#include <vector>
|
||||
#include <SFML/Graphics.hpp>
|
||||
@@ -12,7 +13,7 @@ struct pattern_info {
|
||||
std::string comments;
|
||||
sf::Vector2i dimensions;
|
||||
|
||||
char *pattern;
|
||||
char *nodes;
|
||||
|
||||
};
|
||||
|
||||
@@ -24,11 +25,11 @@ public:
|
||||
~Decoder();
|
||||
|
||||
pattern_info decodePattern(std::string pattern);
|
||||
std::vector<std::string> getPatternList();
|
||||
std::vector<const char*> getPatternList();
|
||||
|
||||
private:
|
||||
|
||||
std::vector<std::string> pattern_list;
|
||||
std::vector<const char*> pattern_list;
|
||||
|
||||
|
||||
};
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
// Have CL create and manage the texture for the image buffer. Access Type is the read/write specifier required by OpenCL
|
||||
bool create_image_buffer(std::string buffer_name, sf::Vector2i size, sf::Vector2f position, cl_int access_type);
|
||||
|
||||
bool map_buffer(std::string buffer_name, unsigned int size, void* data = nullptr);
|
||||
|
||||
// Create a buffer with CL_MEM_READ_ONLY and CL_MEM_COPY_HOST_PTR
|
||||
int create_buffer(std::string buffer_name, cl_uint size, void* data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user