objects in guiserver

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

objects in guiserver

Post by cormullion »

What's the best way to do this task? I want to place three or four copies of a graphical object onto a canvas, each one behaving slightly differently, but using the same code basic code. I don't think I can use FOOP-style objects, because they aren't modifiable (so I couldn't vary key parameters). Also, the objects need to be drawn once at the start, then modified continually in response to events.

shercipher
Posts: 15
Joined: Sun May 10, 2009 3:11 am

Post by shercipher »

In CL the answer would be macros. In NL I'm pretty sure the answer is still macros. What exactly are you trying to accomplish (explain)?

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

While I understand (basically :)) the FOOP approach, and use guiserver a lot, I can't work out how to do both at the same time. How to define an object and its behaviour, then to place multiple instances of that object on a canvas.

I've forgotten what I was trying to do, now...:)

I'm pretty sure the answer's not macros, though.

Locked