Empty code(Create window)

smilytics
There is a newer version of this page. You can find it here.

Empty code (Create window)

sample

#include <use_sherry.h>
#include <shEntryPoint.h>

static void UpdateFunc(void);
static void DrawFunc(void);

int Initialize()
{   //!App initialize Process
    shInitCreateSherry("smatcha sample",320,480,0,Direct3D9);
    shSetClearColor(0.1f,0.1f,0.1f);
    shSetSpriteScSize(320, 480);

    shSetUpdateThread(60,UpdateFunc);
    shSetDrawThread(DrawFunc);
    return 0;
}

int Terminate()
{   //!App exit process
    shExitSherry();
    return 0;
}

void UpdateFunc(void)
{   //!Update

}

void DrawFunc(void)
{   //!Draw
    shClear();

    shFontSize(16);
    shPrintf(30,30,"sample");
}

MongoDB Logo MongoDB