Glad And Can It Be

0 views
Skip to first unread message

Granville Turley

unread,
Aug 5, 2024, 5:43:26 AM8/5/24
to scaponlanjeo
Isthere any way to use Glad within a DLL and exe? I feel like there may be problems since DLL's have their own memory space that is separate from the exe, but I'm not sure how I would go about refactoring my code to represent this.

My situation is that I have a game engine which contains numerous methods that use OpenGL functions that are loaded by glad, such as the shaders, textures, and anything else rendering related. But, I'm exporting the engine as a dll (for various other reasons), and the runtime editor links to that dll. This runtime editor requires access to the glad functions as well because it statically links to imgui, which needs the same window context and everything, and I'm assuming if I called gladLoadGL() in the dll and in the exe I would get different function pointers which means they wouldn't be operating on the same data. Is there any way to do this? I've tried linking GLFW as a DLL as well, but that doesn't help (which makes sense since this is a glad issue). If I don't do gladLoadGL() in my exe I get nullptr exceptions when trying to execute gl functions (because there are just a couple of cases where I use glFunctions inside the runtime editor). But if I do run gladLoadGL() in my exe, it loads new function pointers which throws everything off and I get errors inside ImGui, which I'm assuming is because glad has loaded different function pointers in the DLL and exe.


Edit: So my original question was answered, and you don't have to do anything special (except load the glad functions in the DLL and exe). However this raises a new problem within my code, which seems to be where the actual problem was. Right now I have a class in the DLL that looks something like this:


It's important to remember the distinction between a pointer variable and what it points to. If you have one instance of GLAD in a DLL and another in an EXE, then for each GLAD function pointer, you will have two pointer variables.


So while you will technically be wasting some storage size (since the DLL and EXE both need pointer variables), it should still function just fine, so long as the OpenGL context is current when you load the pointers.


Our breeding program and in-house bulb cultivation process consistently offers a spectacular assortment of outstanding varieties. Our glads are grown from our own bulbs, carefully selected to perform in our unique temperate climate.


From the American English perspective, all three are grammatically correct. The difference is primarily on where the emphasis is being placed, and by extension, the possible additional meanings that might be inferred, without any further context. However, remember that context is everything!


The first, "Glad you have it resolved" emphasizes that the speaker ("I") is glad, and that it's because the problem is resolved. It's somewhat open as to how it got resolved. It could be because "you" solved it, or because someone or something else solved it for you.


The second, "Glad you have resolved it" emphasizes the participation of you in getting it resolved, whether by direct action or indirectly by having someone or something else take care of (resolve) it for you.


However, the difference between those first two is very subtle, and open to disagreement among native English speakers. Both are 100% grammatically correct for all meanings that either might have. Both can mean that you solved the problem, or that you had someone or something else solve the problem, or that the problem just resolved itself without any action (e.g., the drought ended because it rained).


I'd say that the first actually means a technically different thing. In the first case, you are glad that the other person's issue is now resolved. In the second and third cases, however, you are glad that the other person resolved it.


Realistically, which I suppose is probably most of what you're asking, I would probably say the last one. There are certain cases where I'd say the first, but mostly just for a different tone (I'm not really sure why, but it seems rushed to me--"glad you have it resolved, let's move on now").


The first sentence "Glad you have it resolved" means that "Glad you get someone to resolve it for you". But I think you mean to say "Glad you have had it resolved". In this case, it express we "Glad you have got it resolved by somebody (somebody has resolved it for you)".


"Encyclopaedic in scope, passionate in tone, this book is a minotaur's labyrinth of information about one of the most remarkable groups in 20th century music. Be glad, for everything you need to know is here." (Rob Young, The Wire)


First published in 2003 and long out of print, Be Glad For The Song Has No Ending: An Incredible String Band Compendium is the definitive book about the ISB. Containing a wealth of interviews, essays, and ephemera from the band's brief but tangled history, this new revised and expanded edition includes two new pieces by ISB member Rose Simpson on Witchseason Productions' idiosyncratic offices and on recording with the ISB in the Sound Techniques studio, as well as interviews with Neil Tennant of Pet Shop Boys, folk musician Alasdair Roberts, and Ossian Brown of Coil and Cyclobe.


The Gene List Annotation for Drosophila (GLAD) resource lets you view and download curated lists of genes that share some relationship, such as genes that encode signal pathway components, kinases, or mitochondrial proteins.


We recommend the FlyBase Gene Group annotations, which provide additional and complementary sets of gene lists, such as those encoding proteins with specific functional domains. It is also possible to start with a GLAD gene group as the input for analysis and view of expression data at DGET (select the option "predefined gene lists" and select a list from the pull-down menu).


We present a resource of high quality lists of functionally related Drosophila genes, e.g. based on protein domains (kinases, transcription factors, etc.) or cellular function (e.g. autophagy, signal transduction). To establish these lists, we relied on different inputs, including curation from databases or the literature and mapping from other species. Moreover, as an added curation and quality control step, we asked experts in relevant fields to review many of the lists. The resource is available online for scientists to search and view, and is editable based on community input. Annotation of gene groups is an ongoing effort and scientific need will typically drive decisions regarding which gene lists to pursue. We anticipate that the number of lists will increase over time; that the composition of some lists will grow and/or change over time as new information becomes available; and that the lists will benefit the scientific community, e.g. at experimental design and data analysis stages. Based on this, we present an easily updatable online database, available at www.flyrnai.org/glad, at which gene group lists can be viewed, searched and downloaded.


Are you saying that when you turn your glad-hands, seals move out of place? The connection has to be tight, but not super tight. Maybe your trailer part (that little bracket) is bent, then you can try to pry it off a little bit.


34 is too warm for it to be temp related. Is it not going together or is it just leaking? If it's not going together make sure the tabs on them are in the correct spot. Also make sure you are trying to put the correct glad hand in the correct spot ours won't go on if it's the wrong one.


Yeah, Tom has 'pocketfuls' of glad hand seals. One little 'misnomer' can make all the difference. Ie: the ones that make it through the laundry, do not go back into 'usable truck stuff.' I learned that for him, the hard way. Dryer (and/or some imperfections?) failed the seal(s.)


ps: BCB .. do the wrong ones fit crosswise? I mean, I can SEE why it'd make sense in some emergency situations, for the red & blues.. tho! The FAB ones, do.. Is that a universal thing? The green line is a TOTALLY different hookup... get THAT part..


Did you try replacing the seals. I keep handfuls of them on the truck. If its a hardware issue and its too tight on the metal flange, I bend the flange out using my hammer tongs. If the connection is too loose, I tap the flange in with the hammer a little bit, so it holds both togeather tighter. Ive rebuilt a couple on the trailer side by grabbing parts off bad trailers. Ive also swapped out mine a couple times. I always use teflon tape on the threads of the hose. I keep my air tool repair kit that I had from working construction. Its got spare fittings, teflon tape, adapters and misc tools in it all related to air.


Did you know you can fill out one quick form here on TruckingTruth and apply to several companies at once for paid CDL training? Seriously! The application only takes one minute. You will speak with recruiters today. There is no obligation whatsoever. Learn more and apply here:


The mad sad glad retrospective frames discussion around the emotional journey of by your team during the previous sprint, and is a great way to identify opportunities to improve team morale and job satisfaction. The retrospective asks participants to share what made them feel frustrated or annoyed (mad), disappointed (sad) and what made them feel happy or proud (glad).

3a8082e126
Reply all
Reply to author
Forward
0 new messages