[SDK] What do these undocumented methods do?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  03 March 2012
[SDK] What do these undocumented methods do?

void* Bitmap::GetVFBData  (    )  
void Bitmap::SetVFBData  (  void *  vfb   ) 

DWORD Bitmap::GetModifyID  (    ) 
void Bitmap::SetModifyID  (  DWORD  m   ) 
BMMExport void Bitmap::IncrModifyID  (    )   


Seeing how it's been about 17 years since the Bitmap class was written I thought the documentation would be completed at some point...
Does anyone have any idea what any of these methods do or what is the data they return?
 
  03 March 2012
Not knowing, just guesswork

From Bitmap.h

   private:
   ....
	DWORD	modifyID; // changes when bitmap changes: used in render effects
	void	*vfbData;


   public:
  	inline  void   *GetVFBData( )	        { return vfbData; }
  	inline  void    SetVFBData(void *vfb )	{ vfbData = vfb; }
	....
  	DWORD GetModifyID()		{ return modifyID; }
  	void SetModifyID(DWORD m)	{ modifyID = m; }
  	BMMExport void IncrModifyID();


After browsing through bitmap.h, they are simple accessor functions to some private members of the Bitmap Class ( private void *vfbData and private DWORD modifyID respectively)

i bet the void *vfbData simply is used to store some arbitrary, max internal data with the bitmap to implement some of the VFB functionality, it's already there in Max 7 SDK (do not have access to older versions), so it was'nt introduced with it's extended VFB render controls in Max 2009 ...

The modifyID on the other hand is, - according to Bitmap.h - used when dealing with effects rendering ( as they are bitmap based) , again i only guess that they are used to allow effects being rendered in the correct sequence
__________________

PowerPreview: High Quality Nitrous Previews for 3ds Max 2012|2013|2014

[ Free Download (ScriptSpot) ]

Home of The Frogs | Online Portfolio

Last edited by spacefrog : 03 March 2012 at 04:36 PM.
 
  03 March 2012
Originally Posted by spacefrog: After browsing through bitmap.h, they are simple accessor functions to some private members of the Bitmap Class ( private void *vfbData and private DWORD modifyID respectively)

i bet the void *vfbData simply is used to store some arbitrary, max internal data with the bitmap to implement some of the VFB functionality, it's already there in Max 7 SDK (do not have access to older versions), so it was'nt introduced with it's extended VFB render controls in Max 2009 ...

The modifyID on the other hand is, - according to Bitmap.h - used when dealing with effects rendering ( as they are bitmap based) , again i only guess that they are used to allow effects being rendered in the correct sequence


Thanks, I saw those private members but missed the part about modifyID being related to effects.
void* vfbData does contain some non-null pointer but it's not castable to IImageViewer* or IMaxBitmapViewer*, it's not clear what it's pointing to.
 
  03 March 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:33 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.