Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

fillpoly() command: how does it work

Posted on 2001-06-24
8
382 Views
Last Modified: 2010-04-15
Hi. How does the fillpoly command work?

I want to know exactly how to do this command. I'm porting my 3D game + soft. driven engine to QBasic (for simplicity), but QBasic doesn't suport this command (or any like it, as far as I know).

Or, even better, can I access Windows DLL's from QB (for example OpenGL32.dll)?. Thx.

PS. Sorry 'bout the low points, I'm running low.
0
Comment
Question by:madmanmarkau
8 Comments
 
LVL 1

Expert Comment

by:gstoddart
ID: 6226167
Um, this is a C forum, there are visual basic forums which would be better suited.  Oddly enough, it's the number 1 most popular topic.  =)
0
 

Author Comment

by:madmanmarkau
ID: 6229755
Sorry, I meant it like this:

I want to be able to draw a 3-vertex polygon in QB, without those little glitches you get at the corners of a "paint"ed area, where paint doesn't reach.

And I meant can I access Windows DLL's from Q-Basic, not V-Basic. (It was a typo...)

Can you help?
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6240483
Most close analog of fillpoy-> Polygon Api
........
The Polygon function draws a polygon consisting of two or more vertices connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode.

BOOL Polygon(

    HDC hdc,     // handle to device context
    CONST POINT *lpPoints,     // pointer to polygon's vertices
    int nCount      // count of polygon's vertices
   );    
 

Parameters

hdc

Identifies the device context.

lpPoints

Points to an array of POINT structures that specify the vertices of the polygon.

nCount

Specifies the number of vertices in the array. This value must be greater than or equal to 2.

Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The polygon is closed automatically by drawing a line from the last vertex to the first.
The current position is neither used nor updated by the Polygon function.

See Also

GetPolyFillMode, POINT, Polyline, PolylineTo, PolyPolygon, SetPolyFillMode
....

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 35 total points
ID: 6245087
I hope, you use Poligone Api w/o problems. Alex
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6402282
This question was LOCKED with a PROPOSED ANSWER and awaits your decision today.  Once a question is LOCKED with a Proposed Answer, few new experts will step in to help on that question, since the assumption is, you've been helped.  If the Proposed Answer helped you, please accept it and award that expert.  If it did not help you, please reject it and add comments as to status and what else is needed.
 
If you wish to award multiple experts, just comment here with detail, I'll respond as soon as possible.  As it stands today, you asked the question, got help and not one expert was awarded for the contribution(s) made.  Your response is needed.  I'll monitor through month end, and if you've not returned to complete this, we'll need to decide.  Expert input is welcome (as always) to determine the outcome here if the Asker does not respond.
 
Your response in finalizing this (and ALL) your question(s) is appreciated.
 
Moondancer
Community Support Moderator @ Experts Exchange

0
 

Author Comment

by:madmanmarkau
ID: 6405079
Umm... I don't want to know how to USE the function, I want to know how to WRITE that function...
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6405169
>>I want to know how to WRITE that function...
See description in
http://www.neutralzone.org/home/faqsys/cates/math.html
(Filled Poligons)
For get code you must or dpwnload all fagsys (63MB)!
or contact with Stefan (Oslo University)
http://www.neutralzone.org/home/faqsys/
0
 

Author Comment

by:madmanmarkau
ID: 6408117
Bloody thing... I accepted the wrong answer... I wanted to accept the previous posting... Grrr...
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question