Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | chip programmers | 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