예제 #1
0
EXPORT(sqInt) primitiveTextureByteSex(void) {
    sqInt renderer;
    sqInt handle;
    sqInt result;

	if (!((interpreterProxy->methodArgumentCount()) == 2)) {
		return interpreterProxy->primitiveFail();
	}
	handle = interpreterProxy->stackIntegerValue(0);
	renderer = interpreterProxy->stackIntegerValue(1);
	if (interpreterProxy->failed()) {
		return null;
	}
	result = b3dxTextureByteSex(renderer, handle);
	if (result < 0) {
		return interpreterProxy->primitiveFail();
	}
	interpreterProxy->pop(3);
	return interpreterProxy->pushBool(result);
}
primitiveTextureByteSex(void)
{
	// B3DAcceleratorPlugin>>#primitiveTextureByteSex
    sqInt handle;
    sqInt renderer;
    sqInt result;

	if (!((methodArgumentCount()) == 2)) {
		return primitiveFail();
	}
	handle = stackIntegerValue(0);
	renderer = stackIntegerValue(1);
	if (failed()) {
		return null;
	}
	result = b3dxTextureByteSex(renderer, handle);
	if (result < 0) {
return primitiveFail();
	}
	pop(3);
	return pushBool(result);
}