Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Vertex Buffer -> Mesh
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

VBBR
Moderator

Brazil
617 Posts

Posted - Jun 15 2004 :  2:39:02 PM  Show Profile  Reply with Quote
In VB6:
- Integer: 2 bytes
- Long: 4 bytes

In VB.NET:
- Short: 2 bytes
- Integer: 4 bytes

So that's just a name exchange basically. It screws up file reading because you could be reading 4 bytes in a row instead of 2 or something like that, so the numbers end up mixed up or half their original bytes.


Whatever. Who knows...
Go to Top of Page

game_maker
Knave

Saudi Arabia
83 Posts

Posted - Jun 15 2004 :  4:42:55 PM  Show Profile  Visit game_maker's Homepage  Reply with Quote
and Long in VB.Net = 8 bytes

that's why

if you compute your file from vb.6 and read it from VB.Net here is the problem but if you compute from VB.Net and read it from VB.Net you won't face any problem with Variable Types
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - Jun 15 2004 :  5:58:26 PM  Show Profile  Reply with Quote
Okay, I always learned that 32 bit machines (like all of the currect PC's) can process a 32 bit number (long/single in VB6) faster than another type (integer, byte, double in VB6). Does this mean I should use integers in VB .NET since they are 32 bit?

Edited by - Sr. Guapo on Jun 16 2004 12:22:36 AM
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - Jun 16 2004 :  12:33:32 AM  Show Profile  Reply with Quote
OK, new problem. I have been attempting to make this work in VB .NET and DX9. I am trying to load the data into a 2D array of vertices. Should I just use the PositionTextured vertices? Also, should I use a vertex buffer, or just load the straight vertex data when rendering? Sorry, I am really confused... DX9 (and VB .NET for that matter) is different from what I am used to, so it is giving me headaches.

PS - these are very DX9 specific questions, if anyone is familiar with it...
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.1 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.