Mercurial > hg > tweakathon2ios
annotate UI code/3Dbox.mm @ 52:89944ab3e129 tip
fix oF linker errors ios8
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 03 Feb 2015 13:18:23 +0000 |
parents | 953db6518738 |
children |
rev | line source |
---|---|
rt300@0 | 1 // |
rt300@0 | 2 // 3Dbox.cpp |
rt300@0 | 3 // tweakathlon |
rt300@0 | 4 // |
rt300@0 | 5 // Created by Robert Tubb on 13/02/2014. |
rt300@0 | 6 // |
rt300@0 | 7 // |
rt300@0 | 8 |
rt300@0 | 9 #include "3Dbox.h" |
rt300@0 | 10 |
rt300@0 | 11 Leap3DBox::Leap3DBox(float ax, |
rt300@0 | 12 float ay, |
rt300@0 | 13 float awidth, |
rt300@0 | 14 float aheight, |
rt300@0 | 15 float azx, |
rt300@0 | 16 float azy, |
rt300@0 | 17 const UIProps& props) : |
rt300@0 | 18 UIElement(ax,ay,awidth, aheight, props) |
rt300@0 | 19 { |
rt300@0 | 20 zx = azx; |
rt300@0 | 21 zy = -azy; // cos of stoopid screen coords |
rt300@0 | 22 init(props); |
rt300@28 | 23 |
rt300@28 | 24 |
rt300@0 | 25 } |
rt300@0 | 26 |
rt300@0 | 27 void Leap3DBox::init(const UIProps& props){ |
rt300@0 | 28 minVal = 0.; |
rt300@0 | 29 maxVal = 127.; |
rt300@0 | 30 xVal = 0.1; |
rt300@0 | 31 yVal = 0.1; |
rt300@0 | 32 zVal = 0.1; |
rt300@0 | 33 |
rt300@0 | 34 thickness = props.borderThickness; |
rt300@0 | 35 foregroundHi = props.buttonHi; |
rt300@0 | 36 backgroundHi = props.generalBackground; |
rt300@0 | 37 foregroundLo = props.buttonLo; |
rt300@0 | 38 backgroundLo = props.generalBackground; |
rt300@0 | 39 fgInactive = props.inactiveGreyedOut; |
rt300@0 | 40 hintShowing = false; |
rt300@0 | 41 on = false; |
rt300@0 | 42 |
rt300@0 | 43 myType = LEAP3D; |
rt300@28 | 44 |
rt300@0 | 45 } |