Babulesnik
Member
|
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 |
|
llynx
Member
|
RE: Errors after updating
(This post was last modified: 02-02-2011 12:25 AM by llynx.)
|
|
02-02-2011 12:24 AM |
|
Babulesnik
Member
|
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 |
|
Babulesnik
Member
|
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
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 |
|
BlackHornet
Member
|
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 |
|
Babulesnik
Member
|
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 |
|