Mercurial > hg > screen-ui
comparison src/main.cpp @ 23:460c05dd74d0
Various enhancements and code refactorings:
* added some compiler warnings.
* text display is centred and with settable TrueType font
* removed highlight member from Voice state - value is derived from other data
and passed to Voice::draw()
* Changed voice radius from member to defined constant
* default number of voices is now 4
* adjusted some colours and buffer zone width
* new keyboard commands: reset, quit.
* when keyboard disabled, keys are now passed to server via OSC
* added handlers for various new OSC messages:
- fullscreen, reset, quit, keyboard enable
- notify (voice state) : several sub-messages
* call reset and calibrate on window resize (fits triangle to window)
author | samer |
---|---|
date | Sat, 04 Feb 2012 23:14:38 +0000 |
parents | 3dff71c0e7fd |
children |
comparison
equal
deleted
inserted
replaced
22:4dcc4312b5fa | 23:460c05dd74d0 |
---|---|
2 #include "melodyTriangle.h" | 2 #include "melodyTriangle.h" |
3 #include "ofAppGlutWindow.h" | 3 #include "ofAppGlutWindow.h" |
4 | 4 |
5 #define HOST "localhost" | 5 #define HOST "localhost" |
6 #define PORT 7770 | 6 #define PORT 7770 |
7 #define NUMVOICES 3 | 7 #define NUMVOICES 4 |
8 #define RECEIVEPORT 7771 | 8 #define RECEIVEPORT 7771 |
9 | 9 |
10 //======================================================================== | 10 //======================================================================== |
11 int main(int argc, const char **argv ){ | 11 int main(int argc, const char **argv ){ |
12 | 12 |