≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Irrklang / irrlicht
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: Normally the pointer is ok. Here is my render loop : [code] while(Irr_Device->run()) { const irr::u32 now = Irr_Device->getTimer()->getTime(); const irr::f32 frameDeltaTime = (irr::f32)(now - then) / 1000.f; then = now; VideoDriver->beginScene(true, true, irr::video::SColor(255,100,101,140)); SceneManager->drawAll(); GUIEnv->drawAll(); irr::core::stringw Title = "RhombiWord Driver : "; Title += VideoDriver->getName(); Title += " FPS : "; Title += VideoDriver->getFPS(); Irr_Device->setWindowCaption(Title.c_str()); cam->setTarget(node->getPosition()); irr::core::vector3df nodePosition = irr::core::vector3df(0,0,0); if(EventReceiver.IsKeyDown(irr::KEY_KEY_Z)) { Player->Set_Position(Player->Get_Position()+irr::core::vector3df(0,1,0)); Player->Play_Sound('T'); //node->setPosition(node->getPosition()+irr::core::vector3df(0,1,0)); } if(EventReceiver.IsKeyDown(irr::KEY_KEY_S)) { Player->Set_Position(Player->Get_Position()+irr::core::vector3df(0,-1,0)); //node->setPosition(node->getPosition()+irr::core::vector3df(0,-1,0)); } if(EventReceiver.IsKeyDown(irr::KEY_KEY_Q)) { } if(EventReceiver.IsKeyDown(irr::KEY_KEY_D)) { } VideoDriver->endScene(); } [/code] And it crash at line : Player->Play_Sound('T'); If I comment the line, I can move my Player. I am not a pro in debugging, but when I put a break point at this line, I have a SIGSEGV error... I will a learn a bit more about debugging. Just a question, Irrklang use a thread for playing a song ? RVM[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact