kimos123
asked on
csg objects with projection shadow
Hi everyone,
i am trying to make a csg objects with projection shadow
and i got some little problem
it say that the followin line is
glutAddMenuEntry("CSG_A_AN D_B", and(cone, sphere));
warning C4047: 'function' : 'void (__cdecl *)(void)' differs in levels of indirection from 'GLUquadricObj *'
cwarning C4047: 'function' : 'void (__cdecl *)(void)' differs in levels of indirection from 'GLUquadricObj *'
error C2095: 'glutAddMenuEntry' : actual parameter has type 'void' : parameter 2
error C2198: 'glutAddMenuEntry' : too few arguments for call through pointer-to-function
"and" is definded like that:
/* "and" two objects together */
void
and(void (*a) (void), void (*b) (void))
{
firstInsideSecond(a, b, GL_BACK, GL_NOTEQUAL);
fixDepth(b);
firstInsideSecond(b, a, GL_BACK, GL_NOTEQUAL);
glDisable(GL_STENCIL_TEST) ; /* reset things */
}
so that is the problem?
regards,
kimos
i am trying to make a csg objects with projection shadow
and i got some little problem
it say that the followin line is
glutAddMenuEntry("CSG_A_AN
warning C4047: 'function' : 'void (__cdecl *)(void)' differs in levels of indirection from 'GLUquadricObj *'
cwarning C4047: 'function' : 'void (__cdecl *)(void)' differs in levels of indirection from 'GLUquadricObj *'
error C2095: 'glutAddMenuEntry' : actual parameter has type 'void' : parameter 2
error C2198: 'glutAddMenuEntry' : too few arguments for call through pointer-to-function
"and" is definded like that:
/* "and" two objects together */
void
and(void (*a) (void), void (*b) (void))
{
firstInsideSecond(a, b, GL_BACK, GL_NOTEQUAL);
fixDepth(b);
firstInsideSecond(b, a, GL_BACK, GL_NOTEQUAL);
glDisable(GL_STENCIL_TEST)
}
so that is the problem?
regards,
kimos
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.