Solved

fillpoly() command: how does it work

Posted on 2001-06-24
8
387 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
[X]
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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

717 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