OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Can OSG be built to have Vec3 be a Vec3d


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Jason MacDonald
Guest





PostPosted: Fri Feb 23, 2018 9:45 pm    Post subject:
Can OSG be built to have Vec3 be a Vec3d
Reply with quote

Hi,
Is there a CMake option to allow Vec3 be a typedef to Vec3d instead of Vec3f?

Jason
This email and any files transmitted with it from Charles Machine Works are confidential and intended solely for the use of the individual or entity to which they are addressed.

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12094

PostPosted: Sat Feb 24, 2018 7:50 am    Post subject:
Can OSG be built to have Vec3 be a Vec3d
Reply with quote

Hi Jason,

No, you can't use CMake to typedef Vec3 to Vec3d, they are always Vec4f's.

The vast majority of OpenGL implementations use floats internally so
it makes sense to support Vec3fs as the default path.

Robert.

On 23 February 2018 at 21:41, Jason MacDonald
<> wrote:
Quote:
Hi,

Is there a CMake option to allow Vec3 be a typedef to Vec3d instead of
Vec3f?



Jason

This email and any files transmitted with it from Charles Machine Works are
confidential and intended solely for the use of the individual or entity to
which they are addressed.





------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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 cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts different result rotating Vec3d for Q... gambr General 2 Tue Jan 24, 2017 10:25 am View latest post
No new posts Using pre-built dependencies for Android Terry Welsh General 0 Wed Jul 08, 2015 4:56 am View latest post
No new posts Self built 3.2.1 3x slower than repo'... robertosfield General 2 Wed Nov 19, 2014 5:52 pm View latest post
No new posts Has anyone built the OSG FBX plugin w... cbuchner1 General 2 Wed Aug 13, 2014 2:50 pm View latest post
No new posts Self built 3.2.1 3x slower than repo'... simon General 7 Thu Jul 24, 2014 4:33 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP