登录
首页 » c++ » D3D透视源码

D3D透视源码

于 2022-05-28 发布 文件大小:88.79 kB
0 160
下载积分: 2 下载次数: 1

代码说明:

HRESULT WINAPI MyDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount){IDirect3DVertexBuffer9* pStreamData = NULL;UINT iOffsetInBytes, iStride;pDevice->GetStreamSource(0, &pStreamData, &iOffsetInBytes, &iStride);if (GetAsyncKeyState(VK_PAUSE) & 1){if (Wall){Wall = FALSE;Beep(2000, 200);}else{Wall = TRUE;Beep(3000, 200);}}if ((iStride == 40 || iStride == 44 || iStride == 48) && Wall){pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);}return OrigDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);}

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ad9833in
    dsp 28335 控制 dds ad9833 产生正弦波,方波,三角波等(dsp 28335 control dds AD9833 generated sine wave, square wave, triangle wave)
    2012-07-22 17:25:12下载
    积分:1
  • Com
    基于C#语言的一个串口通信上位机程序,有界面,可以自己设置波特率和串口号.(A serial communication PC procedures based on the C# language, interface, you can set the baud rate and serial number.)
    2012-05-06 12:37:01下载
    积分:1
  • StockMonitor
    说明:  c#读取大智慧数据开发个性化图表(k线等)源码及图表控件源码和教程\股票图形控件(c# read the data in the development of individualized great wisdom chart (k lines, etc.) source and the chart control source and tutorials \ stock graphics control)
    2011-04-14 19:37:36下载
    积分:1
  • STM32F103C8T6_Template
    说明:  stm32f103c8t6模板,基于ST固件库3.5,包含常用基本配置(Stm32f103c8t6 template, based on ST firmware library 3.5, contains common basic configuration)
    2020-06-18 03:00:02下载
    积分:1
  • vc694557882444
    说明:  用visual c++ 写的des加密算法演示 (with visual c write des encryption algorithm demo)
    2006-05-13 07:38:18下载
    积分:1
  • C#封装微信API的操作类源码下载
    现在用微信公共平台的比较多,特封装一个微信的API类,方便调用。支持最新版4.5的5种推送消息类型和3种回复消息类型。对基本的请求验证和通过验证,接受消息和回复消息都有静态方法实现,不用再手工去做了。
    2013-11-08下载
    积分:1
  • EmptyProject
    direvctX最初框架,供添加具体代码(directX )
    2009-11-20 20:35:55下载
    积分:1
  • led
    单片机应用程序学习 简单入门教程例程学习 1.闪烁的LED(SCM applications to learn learn simple routines Tutorial 1. Flashing LED)
    2011-01-01 23:34:28下载
    积分:1
  • MPC5604B_UARTreceive
    MPC5604的串行通信接口接收程序,已调试好,有需要的可以拿走了(MPC5604 serial communication interface to receive the program, has been debugged, the need to be able to take away)
    2021-01-07 16:08:52下载
    积分:1
  • MeDelete
    SelfDelete(可以删除自身的VC++源码(巳通过了调试)) 为了实现程序自删除功能,我们可以通过多进程的方法解决这个问题。可执行文件在结束返回前,创建一个运行命令窗口的新进程(在Windows98中为Command进程,在Windows2000/XP中为CMD进程),当然该命令窗口以隐藏方式执行,并通过传递参数执行删除功能。为了避免可执行文件的映像还在内存中就执行删除,需要把当前进程设置为实时优先级,而命令窗口进程设置为很低的IDLE优先级,这样首先可执行文件结束返回,再运行命令窗口的删除命令,就实现了该文件自身的删除功能。 (SelfDelete (you can delete its own VC++ source code (had passed debugging)) In order to achieve the program from the delete function, we can multi-process methods to solve this problem. Return before the end of the executable file, run the command window to create a new process (in Windows98 process for the Command, in Windows2000/XP process for CMD), of course, the command window to hide the manner and to perform delete functions by passing a parameter . In order to avoid the executable file image still in memory on the implementation of delete, you need to set the current process for real-time priority, and the command window to set the process priority to low IDLE, so the end of the first return to the executable file, then run the command window delete command, the file itself to achieve the delete function. )
    2011-06-26 23:22:21下载
    积分:1
  • 696518资源总数
  • 105563会员总数
  • 11今日下载