Questions tagged [renderer]

A renderer is a software construct that accepts and transforms information so that it can be displayed in a given medium.

A renderer is a software construct that accepts and transforms information so that it can be displayed in a given medium.

930 questions
3
votes
1 answer

TableCellRenderer lost

I've got an ArrayList bound to a JTable. After bindingGroup.unbind(); bindingGroup.bind(); (done to refreshing data) I lost table cell renderer behavior. Any suggestions?
3
votes
1 answer

Why does my ray traced diffuse lighting cut off sharply?

I've been following Ray Tracing In One Weekend in Javascript and have been doing well until it was time to implement diffuse lighting. After a lot of debugging, the output it produced didn't match the expected output. Expected Result My Result The…
LemonHead
  • 31
  • 2
3
votes
1 answer

Optimizing Pagination rendering

While looking at Pagination, the question of rendering complex pages arose. The API example, et al., typically specify a pageFactory that simply constructs a new control each time it is called. Indeed, profiling the example below while paging showed…
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
3
votes
2 answers

JRadioButton that looks like JButton

I'm trying to create a feature similar to that of Geogebra's toolbar: it has buttons that select tools, so only one can be selected at a time, but they don't look like radio buttons (a dot, with an inner dot if it's selected); they look like…
wchargin
  • 15,589
  • 12
  • 71
  • 110
3
votes
2 answers

Android - Switch activities from renderer

In my Android app I want to switch activities from my renderer. When I create the Renderer I pass context in the constructor. In my Renderer in the onDrawFrame function: public MyRenderer(Context ctx){ this.context=ctx; } public void…
andreasv
  • 689
  • 3
  • 11
  • 26
3
votes
3 answers

Magento grid filter index for custom column

In Magento Grid a) While preparing collection I did some calculations in query and got those values as extra column- ex - select 1 as extracolumn Now how can I set filter_index and sorting on this column OR b) I am using rendering to show custom…
sushantsahay
  • 361
  • 2
  • 7
  • 15
3
votes
1 answer

Buttons, OpenGL, and Renderers - Android

I'm looking to have an OpenGL view (GLSurfaceView) that uses a Renderer alongside some buttons in a RelativeLayout so that each of these buttons can interact with the rendered view. Let's say in this RelativeLayout I have one GLSurfaceView and one…
HJM
  • 236
  • 1
  • 5
  • 16
3
votes
0 answers

trying to alert in reactjs by renderer

im trying to alert simple stuff in Reactjs by renderer but it didn't work out here is my code: index.js: import Renderer from "./renderer"; import App from "./App"; const root = document.getElementById("root"); Renderer.render(new App({ name:…
Hazal Kaya
  • 631
  • 2
  • 5
  • 16
3
votes
1 answer

Directshow : How to change Size and frame rate of video?

(at first , sorry for my English) I have a DirectShow filter graph like this: and this is my code: HRESULT BuildGraph(IGraphBuilder *pGraph, LPCOLESTR srcFile1) { HRESULT hr = S_OK; //graph builder CComPtr
Maria
  • 344
  • 8
  • 30
3
votes
2 answers

How to disable Carousel Page scrolling in Android

Using a custom renderer one can disable the swiping gesture of an CarouselPage on iOS like so: using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; [assembly: ExportRenderer(typeof(CarouselPage),…
jtth
  • 876
  • 1
  • 12
  • 40
3
votes
1 answer

How to rerender, if key stays the same, but other values change?

I'm writing a React app. I have a table of contacts: // ... pure functional component that gets the contacts via props return ( {fields.map(renderHeaderCell)} …
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
3
votes
1 answer

Angular 6 How to add multiple styles in directive? Style element not connected with directive (addClass)

I have directive which does an action when I scroll. @HostListener('window:scroll') doSomething() { console.log(this.el); console.log(this.el.nativeElement); if (window.pageYOffset > 10) { console.log('mouse scroll…
Aerogirl
  • 369
  • 4
  • 17
3
votes
1 answer

Rails Custom Renderer

I've been trying to create a custom renderer based on this Yehuda Katz's blog post. It works if I call render :my_custom_renderer => "index", but it doesn't work with default respond_with or format.my_custom_renderer I created a simple example,…
glebm
  • 20,282
  • 8
  • 51
  • 67
3
votes
3 answers

Why is SDL2 rectangle and line drawing not pixel perfect?

When using SDL2 (2.0.8), drawing a 2D rectangle or a line with SDL_RenderDrawRect or SDL_RenderDrawLine is not pixel perfect. There are some artifacts. Why is that? And is there a way to prevent that? Code example: #ifdef WIN32 #include…
3
votes
2 answers

Why Dear ImGui based renderer is so slow?

I have done class which render 2d objects based on Dear ImGui DrawList, because it can draw many different variants of objects thanks index vector dynamic array and still stay well optimized. Dear ImGui can render 30k unfilled rects while having…
Shout
  • 338
  • 5
  • 14