Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (35 sloc) 0.768 kb
e2fc527 @cibomahto Receive UDP data correctly, yeah!
cibomahto authored
1 class ImageHud {
2 PImage img;
3 float x;
4 float y;
5
6 ImageHud(float x_, float y_, int w_, int h_) {
7 x = x_;
8 y = y_;
9 img = new PImage(w_,h_);
10 }
11
12 void update(color[] imageData) {
13 img.loadPixels();
14 for (int i = 0; i < blinkeyLights.size(); i++) {
15 img.pixels[i] = imageData[i];
16 }
17 img.updatePixels();
18 }
19
20 void draw() {
21 pCamera.beginHUD();
22 image(img, x, y);
23 pCamera.endHUD();
24
25 // pushMatrix();
26 // translate(0, 0.5, 0);
27 //
28 // beginShape();
29 // texture(groundTexture);
30 // textureMode(NORMALIZED);
31 //
32 // vertex(w_, h_, 0, 0, 0);
33 // vertex(bound, .5, -bound, 1, 0);
34 // vertex(bound, .5, bound, 1, 1);
35 // vertex(-bound, .5, bound, 0, 1);
36 // endShape();
37 // popMatrix();
38 }
39 }
Something went wrong with that request. Please try again.