Please use english language
It is currently 26 Feb 2020, 10:33

All times are UTC





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SDK model for an editor
PostPosted: 26 Jan 2016, 17:11 
Offline

Joined: 10 Sep 2013, 19:14
Posts: 25
I attempting to implement the SDK in my .NET application that is designed to adjust values stored in the ini. The point is to provide visual feedback of the results of those changes.

I am trying to understand the model here and how applicable it is in my application. It appears there is a callback function that is meant to be a sort of "message loop" from the ENB. In the example it is used to count the number of frames and save or set values depending on what "message" is sent from the ENB and the local variables. I see how this works for the purpose of the plugin example, but I am not seeing whether it would be necessary for my purpose.

All I really need to do is change values when they are changed in my application. In addition, the whole point of my application IS to change the values in the ini. So would saving values to be restored later be necessary? (since they are already saved in memory inside my application?). Would using this callback be necessary? If the user tries to save the ini when the values have changed it won't matter because my application already has the current values of the ini in memory. The only thing that would be affected is the ability to revert (using my application) and I can probably work around this issue if necessary. My program will overwrite the ini file with values in its memory space at the users request.


Top
 Profile  
 
Tomoko
PostPosted: 27 Jan 2016, 07:37 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 14816
Location: Russia
Sorry, hard to understand everything with my english and non sleeping life, i'll try to answer as i can.
Sdk do not allow to save values, but if user press "save" button inside in-game editor, all changes made by your application via sdk connection will be saved to ini. Exception is what i did in example, callback to restore old values (if i remember). If you modify values via sdk and in the ini at same time, any manipulations of user will result in forced values which your application set. Callbacks probably not required, but highly recommended to avoid any bugs if user changes something.

_________________
i5-4690k, 16Gb RAM, GTX 1060 6Gb, X-Fi Titanium, Win7 x128
I am INFP, not the brutal, godamnit.


Top
 Profile  
 
PostPosted: 28 Jan 2016, 11:24 
Offline

Joined: 10 Sep 2013, 19:14
Posts: 25
Ok thanks. One last question on this topic. What order are the byte stored for a color?

param.data = unsigned char[16]
data[8] = red
data[4] = green
data[0] = blue?

or is that backward?

What about alpha?


Top
 Profile  
 
PostPosted: 28 Jan 2016, 18:02 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 14816
Location: Russia
Code:
union ECOLOR32
{
   struct
   {
   BYTE   b;
   BYTE   g;
   BYTE   r;
   BYTE   a;
   };
   DWORD   c;
};

struct EColor4
{
   float   r;
   float   g;
   float   b;
   float   a;
};

_________________
i5-4690k, 16Gb RAM, GTX 1060 6Gb, X-Fi Titanium, Win7 x128
I am INFP, not the brutal, godamnit.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group