About Store Forum Documentation Contact
Donations:
345$/mo



Post Reply 
Errors after updating
Author Message
Babulesnik Offline
Member

Post: #1
Errors after updating
Errors after updating.Part has corrected, the part remained.

kub_image[kub_rezult[kub_nomer]].draw(Ms.pos.x-0.05,Ms.pos.y+0.05,0.10,0.10);

1>c:\users\дмитрий\desktop\esenthelenginesdk\esenthelenginesdk\tutorials\kosti.​cpp(196) : error C2228: left of '.x' must have class/struct/union


In difined refers on Vec2.

struct Vec2 // Vector 2D
{
union
{
struct{Flt x,y ;};
struct{Flt c[2];}; // component
};
What for to me x and y if one variable is necessary to me only?

P.S Once again excuse for my English
02-02-2011 12:23 AM
Find all posts by this user Quote this message in a reply
llynx Offline
Member

Post: #2
RE: Errors after updating
Please stay up to date with the Name Changes
(This post was last modified: 02-02-2011 12:25 AM by llynx.)
02-02-2011 12:24 AM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #3
RE: Errors after updating
(02-02-2011 12:24 AM)llynx Wrote:  Please stay up to date with the Name Changes

Thenks.

kub_image[kub_rezult[kub_nomer]].draw(Ms.dc().x-0.05,Ms.dc().y+0.05,0.10,0.10); - works

Could not solve this problem - kub_skel[i].create("../Data/obj/chr/Kubik/kubik.skel",0.005);
02-02-2011 12:59 AM
Find all posts by this user Quote this message in a reply
BlackHornet Offline
Member

Post: #4
RE: Errors after updating
what about providing a matrix as 3rd parameter, don't know if Esenthel use identity matrix as default value smile

Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
02-02-2011 08:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #5
RE: Errors after updating
(02-02-2011 08:12 AM)BlackHornet Wrote:  what about providing a matrix as 3rd parameter, don't know if Esenthel use identity matrix as default value smile

CSkeleton kub_skel[6];
Skeleton skel_kub;

skel_kub.load("../Data/obj/chr/Kubik/kubik.skel");

kub_skel[i].create(skel_kub()); -error

else

kub_skel[i].create(skel_kub(),0.005,Matrix() ); -error

Error

1>d:\esenthelenginesdk\tutorials\kosti.cpp(96) : error C2064: term does not evaluate to a function taking 0 arguments
(This post was last modified: 02-02-2011 08:49 AM by Babulesnik.)
02-02-2011 08:34 AM
Find all posts by this user Quote this message in a reply
BlackHornet Offline
Member

Post: #6
RE: Errors after updating
you should start here http://www.cplusplus.com/doc/tutorial/classes/

kub_skel[i].create(skel_kub()); -error...for sure, there is no function called: void skel_kub()

you should use:
kub_skel[i].create(&skel_kub,0.005f);

should be enough as far as I can see...

better would be to create a new Skeleton object instead of a variable on the stack (might be lost if the scope of the functions ends otherwise):

Code:
Skeleton *skel_kub = new Skeleton;
if (skel_kub->load("../Data/obj/chr/Kubik/kubik.skel"))
{
  kub_skel[i].create(skel_kub,0.005f);
}

Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
02-02-2011 10:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #7
RE: Errors after updating
(02-02-2011 10:50 AM)BlackHornet Wrote:  you should start here http://www.cplusplus.com/doc/tutorial/classes/

kub_skel[i].create(skel_kub()); -error...for sure, there is no function called: void skel_kub()

you should use:
kub_skel[i].create(&skel_kub,0.005f);

should be enough as far as I can see...

better would be to create a new Skeleton object instead of a variable on the stack (might be lost if the scope of the functions ends otherwise):

Code:
Skeleton *skel_kub = new Skeleton;
if (skel_kub->load("../Data/obj/chr/Kubik/kubik.skel"))
{
  kub_skel[i].create(skel_kub,0.005f);
}

Thanks for a detailed explanation.
02-02-2011 12:31 PM
Find all posts by this user Quote this message in a reply
Post Reply