cmhost Posted October 24, 2012 Posted October 24, 2012 Hello i have the following code i have problems with:// esp_dll.h#include <windows.h>#include "d3dx9.h"#include <d3d9.h>#pragma onceusing namespace System;namespace esp_dll {public ref class Class1 { void SetModelColor(LPDIRECT3DDEVICE9 pDevice, float r, float g, float b, float a, float glowr, float glowg, float glowb, float glowa) { float lightValues[4] = {r, g, b, a}; float glowValues[4] = {glowr, glowg, glowb, glowa}; pDevice->SetPixelShaderConstantF(1, lightValues, 1); pDevice->SetPixelShaderConstantF(3, glowValues, 1); } };}Its not working when i try to call SetPixelShaderConstantF(pDevice, 3, {1.0f, 1.0f, 1.0f, 1.0f}, 1);
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now