59 lines
861 B
C++
59 lines
861 B
C++
//
|
|
// GUI.h
|
|
// emptyExample
|
|
//
|
|
// Created by James Alliban on 25/06/2013.
|
|
//
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "ofMain.h"
|
|
#include "BarGraph.h"
|
|
#include "ofxFTGL.h"
|
|
|
|
class testApp;
|
|
|
|
class Scene
|
|
{
|
|
public:
|
|
void setup();
|
|
void update();
|
|
void draw();
|
|
void drawVideo();
|
|
void drawHUDBG();
|
|
void drawHUDCopy();
|
|
void drawTextBox(string copy, string align);
|
|
void keyPressed(int key);
|
|
|
|
BarGraph barGraph;
|
|
ofShader rgbShader;
|
|
ofImage bgImg;
|
|
ofxFTGLSimpleLayout text;
|
|
|
|
|
|
|
|
// video image vars
|
|
float brightness;
|
|
float contrast;
|
|
float saturation;
|
|
float red;
|
|
float green;
|
|
float blue;
|
|
float alpha;
|
|
|
|
// HUD background vars
|
|
float hudColour[4];
|
|
float circlePointSize;
|
|
float radiusW;
|
|
float radiusH;
|
|
|
|
// text vars
|
|
float xMargin;
|
|
float yMargin;
|
|
float yMarginBottomOffset;
|
|
float lineLength;
|
|
float lineSpacing;
|
|
float textSize;
|
|
float textColour[4];
|
|
}; |