游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1680|回复: 0

DraculaLin,请问能否动态切换HardwareTL的属性

[复制链接]

9

主题

45

帖子

45

积分

注册会员

Rank: 2

积分
45
发表于 2005-9-30 10:29:00 | 显示全部楼层 |阅读模式
在Asphyre Pro 1.1.1中
在程序中代码如下:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (Key = VK_F1) then //this can't change at runtime?!!
  begin
    AsphyreDevice.HardwareTL := not AsphyreDevice.HardwareTL;
//    AsphyreDevice.InitDevice();
  end;
end;

无论是否执行AsphyreDevice.InitDevice();都不能动态切换HardwareTL的属性

目前我还没有看Asphyre Pro 1.1.1中的相关代码,只是想问问这样可不可以。
或者有什么别的方法。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-27 23:50

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表