flat assembler
Message board for the users of flat assembler.

Index > Windows > data using by opengl application

Author
Thread Post new topic Reply to topic
catafest



Joined: 05 Aug 2010
Posts: 129
catafest 24 Jul 2011, 14:53
I want use data stuff under opengl application- like texture , vertices, colors data...
1.Is correct way to add this data into dll file and load it ?
2.This increase the speed of opengl application when I load this dll?
3.What is the way to do this, if this idea is not good?
Thank you .
Regards.
Post 24 Jul 2011, 14:53
View user's profile Send private message Visit poster's website Yahoo Messenger Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 790
Location: Massachusetts, USA
bitshifter 26 Jul 2011, 11:25
Keeping resources in DLL in not necessary.
Check out the .3ds file format.
Post 26 Jul 2011, 11:25
View user's profile Send private message Reply with quote
catafest



Joined: 05 Aug 2010
Posts: 129
catafest 26 Jul 2011, 11:49
@bitshifter: Thank you for reply .I found the format on http://www.martinreddy.net/gfx/3d/3DS.spec
I read also :"The 3DS format is one of the file formats used by Discreet Software's 3D Studio Max."
My question is more about how to efficiently use raw formats under fasm (with opengl in this case).
Post 26 Jul 2011, 11:49
View user's profile Send private message Visit poster's website Yahoo Messenger Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4324
Location: Now
edfed 26 Jul 2011, 21:18
you can also use a custom data structure to contain your textures, vertices, colors, etc...

only what you want is needed, then, let imagine you write a opengl code that uses only datas defined in the data section of the source.

now, you have the context, what can be an external file, just it should always respect the disposition of datas, always the same data at the same position in the file.
Post 26 Jul 2011, 21:18
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.