The Trunk: Graphics-mtf.165.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-mtf.165.mcz

commits-2
Matthew Fulmer uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mtf.165.mcz

==================== Summary ====================

Name: Graphics-mtf.165
Author: mtf
Time: 29 December 2010, 12:10:24.297 am
UUID: ad093cc3-3d69-7f42-969e-a103e2dca6a3
Ancestors: Graphics-mtf.164

added u, v accessors to Point, for convenience when dealing with textures. cherrypicked from Cobalt:

Name: Graphics-jrd.22
Author: jrd
Time: 30 June 2010, 12:43:30 am
UUID: 4dbde08d-b493-4013-b645-5ea17194d447
Ancestors: Graphics-mtf.21

Changed:

- Added convenience methods to create and access a point using u and v (as is the usage in texture coordinates) instead of x and y

=============== Diff against Graphics-mtf.164 ===============

Item was added:
+ ----- Method: Point class>>u:v: (in category 'instance creation') -----
+ u: xInteger v: yInteger
+ "Answer an instance of me with coordinates xInteger and yInteger."
+
+ ^self new setX: xInteger setY: yInteger!

Item was added:
+ ----- Method: Point>>u (in category 'accessing') -----
+ u
+ ^x!

Item was added:
+ ----- Method: Point>>v (in category 'accessing') -----
+ v
+ ^y!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Graphics-mtf.165.mcz

Bert Freudenberg

On 29.12.2010, at 05:12, [hidden email] wrote:

> Matthew Fulmer uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-mtf.165.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-mtf.165
> Author: mtf
> Time: 29 December 2010, 12:10:24.297 am
> UUID: ad093cc3-3d69-7f42-969e-a103e2dca6a3
> Ancestors: Graphics-mtf.164
>
> added u, v accessors to Point, for convenience when dealing with textures. cherrypicked from Cobalt:

Hmm. Why can't these remain extension methods?

- Bert -