Beispiel #1
0
void GLGSRender::WriteColorBuffers()
{
	glPixelStorei(GL_PACK_ROW_LENGTH, 0);
	glPixelStorei(GL_PACK_ALIGNMENT, 4);

	switch(m_surface_colour_target)
	{
	case CELL_GCM_SURFACE_TARGET_NONE:
		return;

	case CELL_GCM_SURFACE_TARGET_0:
		WriteColourBufferA();
	break;

	case CELL_GCM_SURFACE_TARGET_1:
		WriteColourBufferB();
	break;

	case CELL_GCM_SURFACE_TARGET_MRT1:
		WriteColourBufferA();
		WriteColourBufferB();
	break;

	case CELL_GCM_SURFACE_TARGET_MRT2:
		WriteColourBufferA();
		WriteColourBufferB();
		WriteColourBufferC();
	break;

	case CELL_GCM_SURFACE_TARGET_MRT3:
		WriteColourBufferA();
		WriteColourBufferB();
		WriteColourBufferC();
		WriteColourBufferD();
	break;
	}
}
Beispiel #2
0
void GLGSRender::WriteBuffers()
{
	glPixelStorei(GL_PACK_ROW_LENGTH, 0);
	glPixelStorei(GL_PACK_ALIGNMENT, 4);

	switch(m_surface_colour_target)
	{
	case 0x0:
		return;

	case 0x1:
		WriteColourBufferA();
	break;

	case 0x2:
		WriteColourBufferB();
	break;

	case 0x13:
		WriteColourBufferA();
		WriteColourBufferB();
	break;

	case 0x17:
		WriteColourBufferA();
		WriteColourBufferB();
		WriteColourBufferC();
	break;

	case 0x1f:
		WriteColourBufferA();
		WriteColourBufferB();
		WriteColourBufferC();
		WriteColourBufferD();
	break;
	}
}