FLTK logo

Re: [fltk.general] complex_polygon

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: complex_polygon Albrecht Schlosser Dec 30, 2021  
 
On 12/30/21 9:56 AM holm.h...@gmail.com wrote:
I want to implement my own version of fl_complex_polygon.
I want to draw a concave polygon to a pixmap.

Why do you want to reinvent the wheel?

To me it seems like fltk have efficient argorithms to do that.

Yes.

I have been looking around to find the code where this is implemented without any luck.

Note that FLTK code is provided under its copyright, you are generally not allowed to *copy* the code to your own source files.

Can any please give me a hint on how this is implemented in fltk / code ?

This code is platform dependent and you can find large portions of it in the platform specific graphics driver code, e.g. src/Fl_Graphics_Driver.cxx (platform independent parts) and src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx (Windows driver(s)) but there are more files involved which I can't enumerate here.

If you still can't find what you're looking for you can run example code with a debugger and follow the calling sequence ...

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/a4868383-7b32-3df6-ef96-a5d27f9bab57%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.