Questions tagged [cinder]

Cinder is a peer-reviewed, free, open source C++ library for creative coding.

Cinder is a peer-reviewed, free, open source C++ library for creative coding.

Cinder provides a powerful, intuitive toolbox for programming graphics, audio, video, networking, image processing and computational geometry. Cinder is cross-platform, and in general the exact same code works under Mac OS X, Windows and a growing list of other platforms — most recently the iPhone and iPad.

Cinder is designed to take advantage of platforms’ native capabilities whenever it’s possible, and relies on a minimum of 3rd party libraries. This makes for much lighter, faster applications, and means Cinder apps get free performance, security and capability upgrades whenever the operating system does.

More info: Cinder

131 questions
0
votes
1 answer

Fill C++ Cinder textures with RGBA values

I use the Cinder Library and want to create a texture, filled with RGBA values which I saved in an array. There is no helpfull explanation on the internet.
user2883073
0
votes
1 answer

Conversion to Cinder gl::Texture

I am trying to create a gl::Texture object using image data as a BYTE * with the parameters below. FreeGLUT - I use this to create a 2d texture and bind it to a quad.: glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, textureWidth, textureHeight, 0,…
0
votes
1 answer

How can I install Cinder to Visual Studio?

So I the other day I wanted to create a game in C++. I have a fair amount of knowledge with c++. I wanted to use CinderBox for my libraries for the OpenGL. However i don't know how to install libraries in Visual Studio. I am using Visual Studio…
Jesh Hesh
  • 1
  • 2
0
votes
2 answers

Cinder & C++: Mirror Texture and Efficient Drawing Questions

Let's say I have a character that faces to the right and I need to mirror the image so that he now faces left. How do I do this? I found the flip method in gl::Texture, but that flips vertically, not horizontally. I've noticed that if I don't…
jhammond
  • 1,916
  • 2
  • 15
  • 29
0
votes
1 answer

draw multiple circles and move them

I'm trying to make a small game where a man shoots "bullets" (which are just circles). I have attempted to make it so when someone drags the mouse, multiple circles will spawn. Currently, the circles only travel when the mouse is released. I added a…
0
votes
1 answer

CINDER INITIALIZATION

``I am learning how to loadImage in cinder. I used loadImage function defined in ImageIo.h file, but When I build my code it gives the following error c:\users\user\particle\src\particleapp.cpp(30): error C2440: 'initializing' : cannot convert from…
0
votes
0 answers

Hard to detect undefined behaviour (or bug)

I am doing a basic cinder application in Visual Studio. It is a particle generation (loosely following the online Hello Cinder guide. In debug mode it always works. In release configuration however, it sometimes does not generate any particle. My…
bolov
  • 72,283
  • 15
  • 145
  • 224
0
votes
1 answer

Using Cinder Libraries in .dll

I have a C++ project running cinder. I would like to implement a plugin system using LoadLibrary and a .dll file using a custom interface. I got a simple example working, but once I add the cinder libraries to use as a reference in my dll, the dll…
JasonX
  • 503
  • 7
  • 21
0
votes
1 answer

Dynamical drawing images in Cinder (Windows)

I have used Cinder about few weeks and i have some problem. I am using method "drag-and-drop" in my program : void TutorialApp::fileDrop(FileDropEvent drop){ /// drop are images for(size_t i=0; i
Simankov
  • 189
  • 1
  • 7
0
votes
1 answer

Lib Cinder method setup{} in CINDER_APP_BASIC

When my programm start, it must display a circle on a background. Also i must controll all displaying circles. I use class VertexController and class Vertex for that purpose. In Vertex i have constructor: Vertex::Vertex(const ci::Vec2f &…
Simankov
  • 189
  • 1
  • 7
0
votes
1 answer

How does Openstack cinder on controller node make NFS share of volumes available to compute node?

NFS mount on compute node under the covers using brick? Leveraging NFS support in libvirt? Just don't understand the magic.
0
votes
1 answer

List iterator not incrementable when checking collision between objects

I am currently coding a space shooter with cinder to learn c++. I am checking collisions between the lasers and the enemys. void ParticleController::CheckCollisions() { for(std::list::iterator e = enemys_.begin(); e != enemys_.end();) …
Tim Kathete Stadler
  • 1,067
  • 4
  • 26
  • 52
0
votes
1 answer

Rotate object to point at mouse position

I have an image of a spaceship, which I want to rotate to point at the mouse position. To calculate the angle I have to rotate I use the following code: void CinderGaemApp::CalculateAngleBetweenMouseAndObject() { float deltaY = mouseLoc_.y -…
Tim Kathete Stadler
  • 1,067
  • 4
  • 26
  • 52
0
votes
1 answer

How can I startup my cinder application in a maximized state?

how can I startup my cinder application in windows in a maximized state? I see some documentation about ShowWindow SW_MAXIMIZED but don't see how this is supported in cinder, can anyone offer any help?
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
1 answer

Use of undeclared identifier with libcinder

I've been working on this https://github.com/Morpheu5/SecondStudy-touch until the moment when Xcode decided to go bananas and stop compiling because of... well, I have no idea. It seems to me that this must be the result of some rookie mistake but I…
Morpheu5
  • 2,610
  • 6
  • 39
  • 72
1 2 3
8
9