Mercurial > projects > qtd
comparison examples/opengl/hellogl/glwidget_d1.d @ 284:1f6923c8cba0
consistent emit syntax.
author | eldar |
---|---|
date | Fri, 16 Oct 2009 12:23:12 +0000 |
parents | 06e7d3219464 |
children |
comparison
equal
deleted
inserted
replaced
283:b61a413fc2f5 | 284:1f6923c8cba0 |
---|---|
84 void setXRotation(int angle) | 84 void setXRotation(int angle) |
85 { | 85 { |
86 normalizeAngle(&angle); | 86 normalizeAngle(&angle); |
87 if (angle != xRot) { | 87 if (angle != xRot) { |
88 xRot = angle; | 88 xRot = angle; |
89 xRotationChanged.emit(angle); | 89 xRotationChanged(angle); |
90 updateGL(); | 90 updateGL(); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 void setYRotation(int angle) | 94 void setYRotation(int angle) |
95 { | 95 { |
96 normalizeAngle(&angle); | 96 normalizeAngle(&angle); |
97 if (angle != yRot) { | 97 if (angle != yRot) { |
98 yRot = angle; | 98 yRot = angle; |
99 yRotationChanged.emit(angle); | 99 yRotationChanged(angle); |
100 updateGL(); | 100 updateGL(); |
101 } | 101 } |
102 } | 102 } |
103 | 103 |
104 void setZRotation(int angle) | 104 void setZRotation(int angle) |
105 { | 105 { |
106 normalizeAngle(&angle); | 106 normalizeAngle(&angle); |
107 if (angle != zRot) { | 107 if (angle != zRot) { |
108 zRot = angle; | 108 zRot = angle; |
109 zRotationChanged.emit(angle); | 109 zRotationChanged(angle); |
110 updateGL(); | 110 updateGL(); |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 mixin Signal!("xRotationChanged", int); | 114 mixin Signal!("xRotationChanged", int); |