Questions tagged [gfx]

38 questions
69
votes
17 answers

android mediaRecorder.setAudioSource failed

I have android G1 firmware 1.6, I am trying to record voice from the app with the follow code. MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); …
user121196
  • 30,032
  • 57
  • 148
  • 198
13
votes
2 answers

How to use gfx in pygame

I have a pygame game and I want to use pygame.gfxdraw.aacricle(), but whenever I do it gives me an error: AttributeError: 'module' object has no attribute 'gfxdraw' How do I install gfx for python 2.7?
lemiant
  • 4,205
  • 4
  • 31
  • 38
5
votes
1 answer

How to bind a vertex buffer to a uniform array in Gfx-rs?

I am trying to pass a list of Uniforms to a vertex shader using gfx-rs. The data is defined as follows gfx_defines! { vertex Vertex { ... } constant MyConst { valoo: i32 = "my_val", } pipeline pipe { my_const:…
Mercurious
  • 3,228
  • 6
  • 24
  • 20
5
votes
1 answer

Cargo, workspace and temporary local dependency

I have two projects my_project and my_inner_project in one cargo workspace. They both depend on gfx (and gfx_core and gfx_device_gl). I've found a bug in gfx_device_core, so I've forked it, cloned, patched locally and want to test it before…
adahn
  • 91
  • 1
  • 7
3
votes
3 answers

how to overlay a line on a dojo column chart

I am using a dojo column chart. I want to add a custom line (some kind of a threshold line) that is drawn on the plot. So, lets say y axis ranges from 0 to 5. I want a horizontal line at, lets say, 4.2 running across the plot. It is a column…
Vijay Agrawal
  • 3,751
  • 2
  • 23
  • 25
3
votes
1 answer

gfx-rs assertion failure when trying to draw to a texture render target

I'm trying to draw to an offscreen render target type ColorFormat = gfx::format::Rgba8; gfx_defines! { pipeline terrain { // snip vbuffer / uniforms out: gfx::RenderTarget = "f_color", selection:…
larvyde
  • 811
  • 1
  • 6
  • 19
3
votes
1 answer

Encoding a line break in a string without using HTML

Is there a way to encode a line break into a string without using any HTML entities or tags? Specifically, I would like a string that I pass into the dojox.gfx renderer to display a line break.
allenylzhou
  • 1,431
  • 4
  • 19
  • 36
2
votes
1 answer

Is there a simple approach to add a tooltip on a shape of dojox.gfx

I found a solution in http://bugs.dojotoolkit.org/ticket/10794, but it was only for dojo 1.4 for dojo version 1.7, there is no dojox.gfx.tooltip. Plz...
user446676
  • 21
  • 2
2
votes
1 answer

SDL2 how to install and use the "gfx" feature

I'm using the SLD2 crate in order to create a simple physics simulation/engine. I want to use the "gfx" feature for getting the framerate and drawing primitives. I understand that I need to include the "SDL2_gfx.lib" file in C:\Users\{Your…
Tony
  • 266
  • 1
  • 11
2
votes
1 answer

Faster way to scale SDL view than SDL_gfx zoomSurface?

I'm programming a game with SDL. I've implemented scalable window size via the SDL_gfx library's zoomSurface function, but boy does the framerate take a hit (presumably because every time you call zoomSurface, it creates an entirely new SDL_Surface…
Hinchy
  • 87
  • 8
2
votes
2 answers

gfx creating bad quality images from pdf

I am using gfx to convert a particular page in a pdf to a .png image, but the image created is of very bad quality. I need to use gfx and can't use any other module. the code used is: import gfx pdf_loc=”C:\new.pdf” pagenumber=12 doc =…
Arnab Ghosal
  • 483
  • 1
  • 4
  • 11
2
votes
1 answer

Drawing successive triangles in a strip with a monotonically increasing number

I would like to draw many triangles, where the 'color' of each is really in index into an internal CPU-side data structure. Is there any easy (fast way) to change the color (index) of every triangle rendered? I thought of using an uninterpolated…
2
votes
1 answer

Scaleform GFx integration with OpenGL

I'm having a problem integrating a Scaleform GFx solution into a simple application. The problem is in the displayed scene a model that is supposed to be white is being displayed as violet. As far as I can tell that color effect appears before I…
user3000633
  • 137
  • 7
2
votes
1 answer

Draw a filled circle with SDL2_gfx in C/C++

I am a SDL beginner. I would like to draw a black background and a filled blue circle on it with SDL2. As there is no way to draw a circle with SDL2, I use SDL2_gfx. I have no problem to draw a black background, but I do not arrive to draw a circle…
user3818296
2
votes
2 answers

How to use gfx module in python

I'm trying to use the gfx module for python (from here: http://www.swftools.org/gfx_tutorial.html). But when I do python setup.py build I get an error: ImportError: cannot import name CompileError I just need to open a gfx file.. (Its part of the…
Javi
  • 889
  • 1
  • 16
  • 41
1
2 3