Reaper Grimm
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > R_GetDrawColumnFunc PrBoom N00b porting question
 
Author
All times are GMT. The time now is 21:45. Post New Thread    Post A Reply
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


New to this forum so hopefully this is the right spot.

I am playing around with porting PrBoom for Android like in the games book. Being the developer (And the fact that the original code of the port was not well maintained) I am I just couldn't use the included binaries. So I started trying to port myself, problem is I just know enough to be dangerous with C and not enough to actually know what I am doing :-).

Anyway I digress, so I am using OpenGL, however, I am still not seeing any graphics. I am not sure but I think part of my problem has to to with this message...

"04-12 13:38:15.650: E/DJNI(17659): Sys Error: R_GetDrawColumnFunc: undefined function (0, 1, 0)"

Now I would be the first to admit it looks like I am passing an invalid parameter, however, this parameter was static and based on existing code...


if (flags & VPT_TRANS) {
colfunc = R_GetDrawColumnFunc(RDC_PIPELINE_TRANSLATED, drawvars.filterpatch, RDRAW_FILTER_NONE);
dcvars.translation = trans;
} else {
colfunc = R_GetDrawColumnFunc(RDC_PIPELINE_STANDARD, drawvars.filterpatch, RDRAW_FILTER_NONE);
}

enum draw_filter_type_e {
RDRAW_FILTER_NONE,
RDRAW_FILTER_POINT,
RDRAW_FILTER_LINEAR,
RDRAW_FILTER_ROUNDED,
RDRAW_FILTER_MAXFILTERS
};

And of course because the value being returned is null this goes bonkers...

colfunc(&dcvars);

And brings down the app, anyone able to guide me as to what I am missing here?

Old Post 04-12-13 14:51 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
entryway
Forum Staple


Posts: 2711
Registered: 01-04


OpenGL does not use R_GetDrawColumnFunc. Check your videomode config variable. It should be "OpenGL".

And probably prboom-plus will be better, at least because it supports different aspect ratios.

Old Post 04-12-13 15:05 #
entryway is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


Great advice! actually I have been struggling to find the "proper" way to enable OpenGL. I see GL_DOOM and and property for GL video mode. Being that I am not very skilled in the ways of C, I just kind of hacked a solution where I define these variables at the top of every .c file (which I know is wrong). I tried adding them to the config.h but no dice.

Any advice on a good thread for how to configure this the way you suggest? Also why is the PrBoom+ source site having cert issues?

Old Post 04-12-13 15:11 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


Also, would I be right to assume that if I do use openGL then SDL should not be required?

Old Post 04-12-13 15:27 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 10989
Registered: 07-07


SDL is still used for playing input (but maybe that needs changing for Android?) and for audio output.

Old Post 04-12-13 17:24 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


Awesome, Yeah I kind of figured that out since I posted. Now it seems I am working on Converting old OpenGL to GLES and porting GLU. I will update if I have more issues Thanks for your help guys!

Old Post 04-12-13 17:55 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


Also I changed this in prboom.cfg

videomode "OpenGL"

Does that look right?

Old Post 04-12-13 17:59 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 21:45. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > R_GetDrawColumnFunc PrBoom N00b porting question

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.