aboutsummaryrefslogtreecommitdiffstats
path: root/src/texture.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-04 14:54:21 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-04 14:54:21 -0400
commita7bbe5cc18fe5b24f5d97d4acce164998d8d5517 (patch)
tree8ef8f0ce2303bbd0aef68c66e7687ec3ca216d30 /src/texture.cpp
parentc74d256646cf0c438feee2ac703cc1f34b47b8ec (diff)
physics, removed extra couts
Diffstat (limited to 'src/texture.cpp')
-rw-r--r--src/texture.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/texture.cpp b/src/texture.cpp
index a361f19..1f8dca3 100644
--- a/src/texture.cpp
+++ b/src/texture.cpp
@@ -143,7 +143,6 @@ namespace Texture{
vec2 getIndex(Color c){
for(auto &i : ind){
if(c.red == i.color.red && c.green == i.color.green && c.blue == i.color.blue){
- //std::cout << float(i.indexy) << "," << float(i.indexx) << std::endl;
return {float(i.indexx), float(i.indexy)};
}
}
@@ -152,22 +151,17 @@ namespace Texture{
float shit = 999;
for(uint y = 0; y < 8; y++){
for(uint x = 0; x < 4; x++){
- //std::cout << y << "," << x << ":" << pixels[y][x].red << "," << pixels[y][x].green << "," << pixels[y][x].blue << std::endl;
buff = sqrt(pow((pixels[y][x].red- c.red), 2)+
pow((pixels[y][x].green-c.green),2)+
pow((pixels[y][x].blue- c.blue), 2));
- //std::cout << buff << std::endl;
if(buff < shit){
shit = buff;
buf[0] = y;
buf[1] = x;
}
- //
- //std::cout << shit << std::endl;
}
}
ind.push_back({c, (int)buf[1], (int)buf[0]});
- //std::cout << float(buf[1]) << ", " << float(buf[0]) << std::endl;
return {float(buf[1]),float(buf[0])};
}
}