Esempio n. 1
0
void sMain()
{
  sSetWindowName(L"Multithreaded Mandelbrot");

  sInit(sISF_3D|sISF_CONTINUOUS|sISF_FSAA/*|sISF_NOVSYNC*//*|sISF_FULLSCREEN*/,1280,720);
  sSetApp(new MyApp());
}
Esempio n. 2
0
void sMain()
{
  sSetWindowName(L"Constant Buffers");

  sInit(sISF_3D|sISF_CONTINUOUS|sISF_FSAA/*|sISF_FULLSCREEN*/,640,480);
  sSetApp(new MyApp());
}
Esempio n. 3
0
void sMain()
{
  sSetWindowName(L"Multiple Rendertargets");

//  sEnlargeZBufferRT(640,480);
  sInit(sISF_3D|sISF_CONTINUOUS/*|sISF_FULLSCREEN*/,640,480);
  sSetApp(new MyApp());
}
Esempio n. 4
0
void sMain()
{
  sInit(sISF_3D|sISF_CONTINUOUS/*|sISF_FULLSCREEN*/,640,480);
  sPartitionMemory(16*1024*1024,0,0);

  sSetApp(new MyApp());
  sSetWindowName(L"Prim");
}
Esempio n. 5
0
void sMain()
{
  sInit(sISF_2D|sISF_3D ,1280,1024);
  sInitGui();
  sSetWindowMode(sWM_MAXIMIZED);

  new wDocument();
  sGui->AddBackWindow(new MainWindow);
  App->WikiPath = L"c:/svn2/wz4tc3wiki";
  App->WikiCheckout = L"svn checkout svn://192.168.0.17/wz4tc3wiki c:/svn2/wz4tc3wiki --username wiki --password qwer12";
  App->UnitTestPath = L"c:/svn2/altona/examples/wz4example/unittest";
  App->MainInit();

  sString<sMAXPATH> name;
  name.PrintF(L"wz4tc3 V%d.%d",WZ4_VERSION,WZ4_REVISION);
  sSetWindowName(name);
}
Esempio n. 6
0
int stack_init(int num, bstack_t *stack, int type)
{
	int i;
	stack->elements = (str_t **)malloc(num*sizeof(str_t*));		//array of elements
	//space for each element (a str_t)
	for (i=0;i<num;i++)
	{
		stack->elements[i] = (str_t *)malloc(sizeof(str_t));
		//init each element (char array);
		sInit(stack->elements[i]);
	}
	stack->size = num;				//number of allocated stack elements
	stack->num = 0;					//number of currently occupied stack elements
	stack->top = 0;
	stack->type = type;

	return 0;
}
Esempio n. 7
0
void sMain()
{
  sSetWindowName(L"Multihead");

  sScreenMode sm;

  sm.Clear();
  sm.Flags = sSM_VALID|sSM_NOVSYNC|sSM_MULTISCREEN|sSM_FULLSCREEN;
//  sm.Flags = sSM_VALID|sSM_NOVSYNC|sSM_MULTISCREEN;
  sm.Display = 0;
  sm.ScreenX = 800;
  sm.ScreenY = 600;
  sm.Aspect = sF32(sm.ScreenX)/sF32(sm.ScreenY);
  sm.MultiLevel = 255;

  sSetScreenMode(sm);
  sInit(sISF_3D|sISF_CONTINUOUS,0,0);
  sSetApp(new MyApp());
}
Esempio n. 8
0
void sMain()
{
  sInit(sISF_2D,800,600);
  sInitGui();
  sGui->AddBackWindow(new MyParentWin);
}
Esempio n. 9
0
void sMain()
{
  sInit(sISF_2D|sISF_3D,800,600);
  sInitGui();
  sGui->AddBackWindow(new MainWindow);
}
Esempio n. 10
0
void sMain()
{
  sInit(sISF_3D|sISF_CONTINUOUS,640,480);
  sSetApp(new MyApp());
  sSetWindowName(L"shader");
}
Esempio n. 11
0
void sMain()
{
  sInit(sISF_3D|sISF_CONTINUOUS,640,480);
  sSetApp(new MyApp());
  sSetWindowName(L"Vertex Texture");
}
Esempio n. 12
0
File: 1406.c Progetto: Daehoho/study
int main (void) {
  char str[100000];
  char op;
  char inputChar;
  int N;
  int i = 0;
  int first, end;
  Stack frontStack;
  Stack rearStack;
  Stack tempStack;

  scanf("%s", str);

  sInit(&frontStack);
  sInit(&rearStack);
  while(1) {
    if(str[i] == '\0') 
      break;
    sPush(&frontStack, str[i]);
    i++;
  }

  scanf("%d", &N);
  while(N--) {
    scanf("%c", &op);
    if(op == 'P') {
      scanf("%c", &inputChar);
      sPush(&frontStack, inputChar);
    } else if(op == 'L') {
      if(!sIsEmpty(&frontStack))
        sPush(&rearStack, sPop(&frontStack));
    } else if(op == 'D') {
      if(!sIsEmpty(&rearStack)) 
        sPush(&frontStack, sPop(&rearStack));
    } else if(op == 'B') {
      if(!sIsEmpty(&frontStack))
        sPop(&frontStack); 
    }
  }

  sInit(&tempStack);
  while(1) {
    if(sIsEmpty(&frontStack))
      break;
    sPush(&tempStack, sPop(&frontStack));
  }
  printf("2");
  while(1){
    if(sIsEmpty(&tempStack))
      break;
    printf("%c", sPop(&tempStack));
  }
  printf("1");
  while(1){
    if(sIsEmpty(&rearStack))
      break;
    printf("%c", sPop(&rearStack));
  }
  printf("3");
  return 0;
}
Esempio n. 13
0
void sMain()
{
  sInit(sISF_3D|sISF_CONTINUOUS|sISF_FSAA/*|sISF_FULLSCREEN*/,640,480);
  sSetApp(new MyApp());
  sSetWindowName(L"Volume Texture");
}
Esempio n. 14
0
void sMain()
{
  sInit(sISF_3D|sISF_CONTINUOUS,1280,720);
  sSetApp(new MyApp());
  sSetWindowName(L"gs");
}