iliak's picture

[GameWindow] GameWindow.Size property on Mac OS X

Project:The Open Toolkit library

Is it possible to add a System.Drawing.Size to the OpenTK.GameWindoW (getter & setter) ?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Status:open» in progress

This is planned for the next version of OpenTK. A WIP, but relatively stable implementation exists in the gw-next branch.

the Fiddler's picture


Status:in progress» in progress (commit)

Committed now to the gw-next2 branch, which will be merged for OpenTK 0.9.9.

the Fiddler's picture


Status:in progress (commit)» in progress (review)

Committed to trunk, but the Mac OS X implementation needs work/testing.

the Fiddler's picture


Title:GameWindow.Size» [GameWindow] GameWindow.Size property on Mac OS X
Version:all versions» 0.9.x-dev

Test that the new properties work correctly on Mac OS X.

the Fiddler's picture


Category:feature request» task
kanato's picture


I'll try and take a look at this next week, but I am moving next friday so I may not get to it until after that.

the Fiddler's picture


Thanks. There are two things to check: GameWindow.Bounds and GameWindow.ClientRectangle.

The first should return the location and 'external' size of the window (including the title and borders), while the latter should always return (0, 0) as its Location and the actual size of the viewport as its Size property.

the Fiddler's picture


Status:in progress (review)» fixed

Fixed in r2514.

the Fiddler's picture


Version:0.9.x-dev» 1.0-beta-2
Status:fixed» closed

Closing issues fixed in 1.0 beta-2.