Jump to content
Tuts 4 You

c++ DirectX 9 Code


cmhost

Recommended Posts

Posted

Hello i have the following code i have problems with:


// esp_dll.h
#include <windows.h>
#include "d3dx9.h"
#include <d3d9.h>
#pragma once
using 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);

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...