HRESULT DeviceManager::CreateInputLayout(LayoutVector vecLayout, ID3DBlob* shaderBuffer, ID3D11InputLayout **ppInputLayout)
{
	HRESULT result = m_pd3dDevice->CreateInputLayout(
		&vecLayout[0],
		vecLayout.size(),
		shaderBuffer->GetBufferPointer(),
		shaderBuffer->GetBufferSize(),
		(ID3D11InputLayout**)ppInputLayout);
	return result;

}
示例#2
0
void display()
{
    glClear(GL_COLOR_BUFFER_BIT);

    unsigned short index, index2;
    // Draw the groups
    for (index = 0; index < congressPositions.size(); index++)
        DisplayGroup::drawGroup(congressGroupData.at(index), congressPositions.at(index));

    // Draw the major connections between them

    glBegin(GL_LINES);
    for (index = 0; index < clusteredVotes.size(); index++)
        for (index2 = 0; index2 < index; index2++)
            if (clusteredVotes.at(index).at(index2) > 0)
                DisplayGroup::drawLink(congressGroupData.at(index), congressGroupData.at(index2),
                                        congressPositions.at(index), congressPositions.at(index2));
    glEnd();

    glFlush();
}