Mailing in box2d (iphone) application - cocos2d-iphone

I am developing a box2d(iphone) application in xcode. Can any one suggest me a sample code on how to take a screenshot in a box2d project. I found the code for view based application but couldn't find it for a cocos/box2d. Thanks in advance

This forum thread on the cocos2d-iphone website should give you what you need: http://www.cocos2d-iphone.org/forum/topic/1722/page/2

Related

How can I display my OSM tiles in Qt client application?

I am working on a map project and I have an OSM tile server which is built on Linux Debian Jessie and it uses Mapnik and mod_tiles to render tiles.
URL for a tile: http://domain/mod_tiles/Z/X/Y.png
I would like to build a client application too in C++ with Qt framework, but I really don't know how I should start it.
I found an example in Qt, but I don't know how I could change the tile server from default to my tile server.
If you know the answer or have some helps or if you know another way to solve my problem, please inform me.
According to http://doc.qt.io/qt-5/location-plugin-osm.html, there are two ways of doing this.
The simplest is to set osm.mapping.custom.host to http://domain/mod_tiles/, then you use the last of the Map.supportedMapTypes.

Need Box2D DebugDraw example for Windows

I need some help using Box2D's DebugDraw feature. I don't know what I'm doing wrong... but I've tried every example online and it just doesn't seem to work for me. I can't see any shapes.
I can compile and run the Box2D TEstbed and can see the objects so I know it's possible.
Basically what I am looking for is:
* Simple HelloWorld (nothing fancy) type example with just a simple shape
* Utilizes cocos2d-x and Box2D
* Builds and runs on Windows (I'm using VisualStudio 2012)
If you can whip up and share something like this, I would be forever gratefull. I've spent all week on this have haven't made an progress. :(
Thanks!!!
Which version of cocos2dx are you using? If v2 you can clone and add this b2Draw implementation to your project.
Add the box2d debug layer with the following snippet to your scene.
B2DebugDrawLayer *debugdraw = B2DebugDrawLayer::create(mWorld, DEBUG_PTM_RATIO);
addChild(debugdraw)
Optionally you could enable more box2d debug flags in B2DebugDrawLayer::init.

GUI testing tool for an C++ application

I want to choose a GUI testing tool for automated testing which with a "record and play" functionality. Could you please suggest me a tool ?
GUI framework is developed for MeeGo platform.
Record and play: an external applucation will be spying on host application and it`ll generate scripts and record the mouse movements and clicks. Later the recorded scripts can be played back.
Any help or suggestion will be helpful for me.
You could try white : http://white.codeplex.com/
or TestComplete : http://en.wikipedia.org/wiki/TestComplete
I don't know if these tools can help you though, because I don't know MeeGo.
If you are looking for cross-platform GUI test tool have a try at eggPlant. visit - www.testplant.com.

How to start Xcode4 opengl project for mac

Good Day
I want to start a opengl project, mainly to follow the Nehe tutorials.
My problem is that I only see templates for opengl es for iphone, and when I click build on those, I only have the choice between iphone or ipad simulator.
So How can I get started with a simple opengl template to follow the tutorial series, without using a simulator, but executing it natively on my mac osx lion?
Please give me a step by step instruction if possible :)
I looked around everywhere but all I found were instructions for Xcode 3 and below etc.
Any help would be appreciated
Create a normal Cocoa project, add the OpenGL framework. In your main window add a NSOpenGLView.
http://developer.apple.com/devcenter/mac/resources/opengl/
I am currently in the process of writing an intuitive Xcode 4 Template for an OpenGL Mac application, which I think is exactly what you were wanting.
In the mean time, you can look at this, a Pong clone I made in OpenGL on the Mac, done the proper way.
EDIT: The template isn't completely finished, but it's definately usable. I didn't implemenet the 3D option, so picking that in the dropdown will result in blank files.
Donwload it from here and then move it into the ~/Library/Developer/Xcode/Templates/Project Templates/Applications folder in your user director.

Image slider for c++

I have c++ program which display images,
I want to move from one image to another, with nice effect
Do you know any project that can help me?
(For example se the effects inside http://www.youtube.com/watch?v=Z6PR9AM1vsA
much less than that will be acceptable.)
Thanks.
---------------Edit-------------------
I am using windows xp for develpment, it should also run on XP and windows 7
I am using MFC because it's old project wrriten in MFC many years ago
Here's an image viewer with some of the features you're looking for. It didn't get the best reviews, but it may help you get started. Built in VC++/MFC.
I have found a CoverFlow effect project in openGL:
http://blog.csdn.net/beidoustudio/article/details/4090806
I have compiled it and run in MFC.
in file opengl.h has a copyright announcement in simplified chinese:
/========================================================================
应用:3D 桌面 - CoverFlow 项目概述
作者:段传辉
博客: xxxx
开源: 全部源码开放,若有技术疑问,博客留言。
========================================================================/
which says
"
the author name is 段传辉,
blog is xxxx,
it's open sourced, any question please leave message on the blog.
"