Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
D3D Draw Triangle #187039
03/05/08 02:26
03/05/08 02:26
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Hello all,

I am trying to get my head around using directx functions in Lite-C, and I am not really getting anywhere

I was wondering if anyone was willing enough to make a basic script that renders a triangle onto the screen, made purely by using directx. Also, how does 3dgs manage things like this? What would I have to do to get this triangle to become a 3dgs entity?

I am really stuck, any advice would be greatly appreciated ^^

Thanks
Adoado


Visit our development blog: http://yellloh.com
Re: D3D Draw Triangle [Re: adoado] #187040
03/05/08 03:15
03/05/08 03:15
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline
User
Trooper119  Offline
User

Joined: Apr 2004
Posts: 516
USA
I would be curious as well, but just for the sake of not just bumping this thread, what for?


A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: D3D Draw Triangle [Re: Trooper119] #187041
03/05/08 05:26
03/05/08 05:26
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
* you can include the d3d9 library like this

#include <litec.h> // Legacy Mode
#include <d3d9.h> // Legacy Mode

But after this I dunno how to use the DrawPrimitive calls in liteC

* another simplest way is to use the draw_line3d function in liteC


I like good 'views' because they have no 'strings' attached..
Re: D3D Draw Triangle [Re: zazang] #187042
03/05/08 08:08
03/05/08 08:08
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Quote:

I would be curious as well, but just for the sake of not just bumping this thread, what for?




Well, its more to get to know D3D - so one day I can do things like messing around with model's vertices, etc. Its really not the actual triangle that matters Just the D3D code and how to lay it all out ^^

Quote:


#include <d3d9.h> // Legacy Mode





^^ This step I have already done but after this stage I get lost


Visit our development blog: http://yellloh.com
Re: D3D Draw Triangle [Re: adoado] #187043
03/05/08 08:27
03/05/08 08:27
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
aint there examples in the work folder? i think so.
look at D3DSample02.c


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1