All pastes #638896 Raw Edit

Something

public text v1 · immutable
#638896 ·published 2007-07-30 05:37 UTC
rendered paste body
const BYTE bGreen[60] = {  
	0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  
	0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,  
	0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,  
	0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  
	0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00, 
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  
	0x33, 0xFF, 0x66, 0x00, 0x00, 0x00  
};    //BLUE  GREEN  RED

// In EndScene
	if (GetAsyncKeyState(VK_DELETE) & 1) {
		bChams = !bChams;
		if (!texPurple || !texGreen) {
			D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID) &bGreen, 60, &texGreen);
			D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID) &bPurple, 60, &texPurple);
			D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID) &bPink, 60, &texPink);
		}
	}