Пример #1
0
//-----------------------------------------------------------------------------
// create vertex and index buffers
void Tower::createBuffers()
{
  m_shellShader = mgVertex::loadShader("litTexture");
  m_officeShader = mgVertexTA::loadShader("unlitTextureArray");
  m_glassShader = mgVertex::loadShader("litTexture");

  createShell();
  createOffices();
}
Пример #2
0
void initTerms() {
	int i = 0, pid = 1;

	for (i = 0; i < TERM_QTY; i++) {
		int j = 0;
		terminals[i].readShellBuffer = 0;
		terminals[i].insertShellBuffer = 0;
		terminals[i].cannonical = CANNONICAL;
		terminals[i].cursorPos = 0;
		for (j = 0; j < 80 * 25 * 2;) {
			terminals[i].video[j++] = ' ';
			terminals[i].video[j++] = 0x07;
		}
		pid = createShell(shell, 0, 0, i);
		terminals[i].foregroundProcess = pid;
		terminals[i].blockedPID = pid;
		terminals[i].user = NULL;
	}
	tty = 0;
}