376 | 377 | ||
---|---|---|---|
87 | r_Texture CreateD3DTallFontTexture(AVPTEXTURE *tex); | 87 | r_Texture CreateD3DTallFontTexture(AVPTEXTURE *tex); |
88 | 88 | ||
89 | // vertex declaration | 89 | // vertex declaration |
90 | bool R_CreateVertexDeclaration(r_vertexDeclaration &declaration, std::vector<struct vertexElement> &elements); | 90 | bool R_CreateVertexDeclaration(class VertexDeclaration *vertexDeclaration); |
91 | bool R_SetVertexDeclaration(r_vertexDeclaration &declaration); | 91 | bool R_SetVertexDeclaration(r_vertexDeclaration &declaration); |
92 | bool R_ReleaseVertexDeclaration(r_vertexDeclaration &declaration); | 92 | bool R_ReleaseVertexDeclaration(r_vertexDeclaration &declaration); |
93 | 93 | ||
94 | // shader functions | 94 | // shader functions |
95 | bool R_CreateVertexShader(const std::string &fileName, r_VertexShader &vertexShader); | 95 | bool R_CreateVertexShader(const std::string &fileName, r_VertexShader &vertexShader, VertexDeclaration *vertexDeclaration); |
96 | bool R_CreatePixelShader(const std::string &fileName, r_PixelShader &pixelShader); | 96 | bool R_CreatePixelShader(const std::string &fileName, r_PixelShader &pixelShader); |
97 | bool R_SetVertexShader(r_VertexShader &vertexShader); | 97 | bool R_SetVertexShader(r_VertexShader &vertexShader); |
98 | bool R_SetPixelShader(r_PixelShader &pixelShader); | 98 | bool R_SetPixelShader(r_PixelShader &pixelShader); |